source: CMT/HEAD/src/setup.csh @ 584

Last change on this file since 584 was 584, checked in by rybkin, 13 years ago

See C.L. 462

  • Property svn:eol-style set to native
  • 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 ( $?0 == 0 ) then
14if ( $?tcsh == 1 || `basename "$shell"` == "tcsh" ) then
15  source ${CMTROOT}/src/setup.tcsh
16endif
17endif
18
19set newpath=
20
21foreach p ( `echo ${PATH} | sed 's#:# #g'` )
22  echo ${p} | egrep '/CMT/' >& /dev/null
23  set s=${status}
24  if ( "${s}" != 0 ) then
25    if ( ${newpath} == "" ) then
26      set newpath=${p}
27    else
28      set newpath=${newpath}:${p}
29    endif
30  endif
31end
32
33setenv PATH ${newpath}:"${CMTROOT}/${CMTBIN}"
34alias cmt '${CMTROOT}/${CMTBIN}/cmt.exe'
35
36if ( $?CLASSPATH == 0) then
37  setenv CLASSPATH ${CMTROOT}/java
38else
39  set newpath=
40  foreach p ( `echo ${CLASSPATH} | sed 's#:# #g'` )
41    echo ${p} | egrep '/CMT/' >& /dev/null
42    set s=${status}
43    if ( "${s}" != 0 ) then
44      if ( ${newpath} == "" ) then
45        set newpath=${p}
46      else
47        set newpath=${newpath}:${p}
48      endif
49    endif
50  end
51
52  setenv CLASSPATH ${newpath}:${CMTROOT}/java/cmt.jar
53endif
54
55alias jcmt '(java cmt_parser)'
Note: See TracBrowser for help on using the repository browser.