icecc/icecc-profile

10 lines
313 B
Plaintext

for r in /usr/libexec/icecc/bin/ /usr/libexec64/icecc/bin; do
if [ -e $r ]; then
PATH=$r:$PATH
RPM_BUILD_NCPUS=`/usr/bin/getconf _NPROCESSORS_ONLN`
[ "$RPM_BUILD_NCPUS" ] || RPM_BUILD_NCPUS=1
RPM_BUILD_NCPUS=`expr $RPM_BUILD_NCPUS \* 2 + 1`
export PATH RPM_BUILD_NCPUS
fi
done