slackware-current/source/d/icecream/icecream.csh

20 lines
483 B
Tcsh
Raw Normal View History

#!/bin/csh
# Only add the icecream directory to the PATH if we see that icecc-scheduler
# and/or iceccd are running on this machine:
setenv ICECC_PRESENT false
/usr/bin/pgrep --ns $$ -f "^/usr/sbin/icecc-scheduler" > /dev/null
if ( $? == 0 ) then
setenv ICECC_PRESENT true
endif
/usr/bin/pgrep --ns $$ -f "^/usr/sbin/iceccd" > /dev/null
if ( $? == 0 ) then
setenv ICECC_PRESENT true
endif
if ( $ICECC_PRESENT == true ) then
setenv PATH /usr/libexec/icecc/bin:${PATH}
endif