source: CMT/v1r14p20031120/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.0 KB
Line 
1
2
3setenv CMTBIN `uname`
4
5if ( $?CMTCONFIG == 0 ) then
6  setenv CMTCONFIG `${CMTROOT}/mgr/cmt_system.sh`
7endif
8
9if ( `basename "$SHELL"` == "tcsh" ) then
10  source ${CMTROOT}/src/setup.tcsh
11endif
12
13set newpath=
14
15foreach 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
25end
26
27setenv PATH ${newpath}:"${CMTROOT}/${CMTBIN}"
28alias cmt '${CMTROOT}/${CMTBIN}/cmt.exe'
29
30if ( $?CLASSPATH == 0) then
31  setenv CLASSPATH ${CMTROOT}/java
32else
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
47endif
48
49alias jcmt '(java cmt_parser)'
Note: See TracBrowser for help on using the repository browser.