Rev | Line | |
---|
[1] | 1 | #----------------------------------------------------------- |
---|
| 2 | # Copyright Christian Arnault LAL-Orsay CNRS |
---|
| 3 | # arnault@lal.in2p3.fr |
---|
| 4 | # See the complete license in cmt_license.txt "http://www.cecill.info". |
---|
| 5 | #----------------------------------------------------------- |
---|
| 6 | |
---|
| 7 | set newpath= |
---|
| 8 | |
---|
| 9 | foreach p ( `echo ${PATH} | sed 's#:# #g'` ) |
---|
| 10 | echo ${p} | egrep '/CMT/' >& /dev/null |
---|
| 11 | set s=${status} |
---|
| 12 | if ( "${s}" != 0 ) then |
---|
| 13 | if ( ${newpath} == "" ) then |
---|
| 14 | set newpath=${p} |
---|
| 15 | else |
---|
| 16 | set newpath=${newpath}:${p} |
---|
| 17 | endif |
---|
| 18 | endif |
---|
| 19 | end |
---|
| 20 | |
---|
| 21 | setenv PATH ${newpath} |
---|
| 22 | unsetenv CMTCONFIG |
---|
| 23 | unsetenv CMTROOT |
---|
| 24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.