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