mirror of
git://slackware.nl/current.git
synced 2025-01-11 08:01:05 +01:00
20 lines
483 B
Tcsh
20 lines
483 B
Tcsh
|
#!/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
|
||
|
|