source:
CMT/v1r12p20020606/src/cleanup.csh
@
1
Last change on this file since 1 was 1, checked in by , 19 years ago | |
---|---|
File size: 346 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | |
2 | set newpath= | |
3 | ||
4 | foreach p ( `echo ${PATH} | sed 's#:# #g'` ) | |
5 | echo ${p} | egrep '/CMT/' >& /dev/null | |
6 | set s=${status} | |
7 | if ( "${s}" != 0 ) then | |
8 | if ( ${newpath} == "" ) then | |
9 | set newpath=${p} | |
10 | else | |
11 | set newpath=${newpath}:${p} | |
12 | endif | |
13 | endif | |
14 | end | |
15 | ||
16 | setenv PATH ${newpath} | |
17 | unsetenv CMTCONFIG | |
18 | unsetenv CMTROOT | |
19 |
Note: See TracBrowser
for help on using the repository browser.