summaryrefslogtreecommitdiffstats
path: root/source/d/icecream/icecream.csh
blob: 6c558d6157e10e1dd360c07430b419e550241c5c (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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