source: CMT/v1r18p20041201/src/setup.csh @ 1

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.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
7setenv CMTBIN `uname`-`uname -m | sed -e 's# ##g'`
8
9if ( $?CMTCONFIG == 0 ) then
10  setenv CMTCONFIG `${CMTROOT}/mgr/cmt_system.sh`
11endif
12
13if ( `basename "$SHELL"` == "tcsh" ) then
14  source ${CMTROOT}/src/setup.tcsh
15endif
16
17set newpath=
18
19foreach 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
29end
30
31setenv PATH ${newpath}:"${CMTROOT}/${CMTBIN}"
32alias cmt '${CMTROOT}/${CMTBIN}/cmt.exe'
33
34if ( $?CLASSPATH == 0) then
35  setenv CLASSPATH ${CMTROOT}/java
36else
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
51endif
52
53alias jcmt '(java cmt_parser)'
Note: See TracBrowser for help on using the repository browser.