Last change
on this file since 1 was
1,
checked in by arnault, 19 years ago
|
Import all tags
|
-
Property svn:ignore set to
setup.*
|
File size:
1.0 KB
|
Line | |
---|
1 | |
---|
2 | |
---|
3 | setenv CMTBIN `uname` |
---|
4 | |
---|
5 | if ( $?CMTCONFIG == 0 ) then |
---|
6 | setenv CMTCONFIG `${CMTROOT}/mgr/cmt_system.sh` |
---|
7 | endif |
---|
8 | |
---|
9 | if ( `basename "$SHELL"` == "tcsh" ) then |
---|
10 | source ${CMTROOT}/src/setup.tcsh |
---|
11 | endif |
---|
12 | |
---|
13 | set newpath= |
---|
14 | |
---|
15 | foreach p ( `echo ${PATH} | sed 's#:# #g'` ) |
---|
16 | echo ${p} | egrep '/CMT/' >& /dev/null |
---|
17 | set s=${status} |
---|
18 | if ( "${s}" != 0 ) then |
---|
19 | if ( ${newpath} == "" ) then |
---|
20 | set newpath=${p} |
---|
21 | else |
---|
22 | set newpath=${newpath}:${p} |
---|
23 | endif |
---|
24 | endif |
---|
25 | end |
---|
26 | |
---|
27 | setenv PATH ${newpath}:"${CMTROOT}/${CMTBIN}" |
---|
28 | alias cmt '${CMTROOT}/${CMTBIN}/cmt.exe' |
---|
29 | |
---|
30 | if ( $?CLASSPATH == 0) then |
---|
31 | setenv CLASSPATH ${CMTROOT}/java |
---|
32 | else |
---|
33 | set newpath= |
---|
34 | foreach p ( `echo ${CLASSPATH} | sed 's#:# #g'` ) |
---|
35 | echo ${p} | egrep '/CMT/' >& /dev/null |
---|
36 | set s=${status} |
---|
37 | if ( "${s}" != 0 ) then |
---|
38 | if ( ${newpath} == "" ) then |
---|
39 | set newpath=${p} |
---|
40 | else |
---|
41 | set newpath=${newpath}:${p} |
---|
42 | endif |
---|
43 | endif |
---|
44 | end |
---|
45 | |
---|
46 | setenv CLASSPATH ${newpath}:${CMTROOT}/java/cmt.jar |
---|
47 | endif |
---|
48 | |
---|
49 | alias jcmt '(java cmt_parser)' |
---|
Note: See
TracBrowser
for help on using the repository browser.