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

Last change on this file since 611 was 611, checked in by rybkin, 12 years ago

See C.L. 486

  • Property svn:eol-style set to native
  • Property svn:ignore set to setup.*
File size: 1.7 KB
Line 
1#-----------------------------------------------------------
2# Copyright Christian Arnault LAL-Orsay CNRS
3# arnault@lal.in2p3.fr
4# Modified by Grigory Rybkin
5# See the complete license in cmt_license.txt "http://www.cecill.info".
6#-----------------------------------------------------------
7
8setenv CMTBIN `uname`-`uname -m | tr -d ' '`
9
10if ( $?CMTCONFIG == 0 ) then
11  setenv CMTCONFIG `${CMTROOT}/mgr/cmt_system.sh`
12endif
13
14if ( $?0 == 0 ) then
15if ( $?tcsh == 1 || `basename "$shell"` == "tcsh" ) then
16  source ${CMTROOT}/src/setup.tcsh
17endif
18endif
19
20set newpath=()
21foreach p (${path})
22  if ( "${p}" !~ "*/CMT/*" ) then
23    if ( ${#newpath} != 0 ) then
24      set newpath=(${newpath} ${p})
25    else
26      set newpath=(${p})
27    endif
28  endif
29end
30
31set path=(${newpath} "${CMTROOT}/${CMTBIN}")
32alias cmt '${CMTROOT}/${CMTBIN}/cmt.exe'
33unset newpath
34
35if ( $?CLASSPATH == 0 || "${CLASSPATH}" == "" ) then
36  setenv CLASSPATH ${CMTROOT}/java/cmt.jar
37else if ( "${CLASSPATH}" !~ "*/CMT/*" ) then
38  setenv CLASSPATH ${CLASSPATH}:${CMTROOT}/java/cmt.jar
39else
40  set newpath=
41  foreach p ( `echo ${CLASSPATH} | tr ':' ' '` )
42    if ( "${p}" !~ "*/CMT/*" ) then
43      if ( "${newpath}" != "" ) then
44        set newpath=${newpath}:${p}
45      else
46        set newpath=${p}
47      endif
48    endif
49  end
50
51  if ( "${newpath}" != "" ) then
52    setenv CLASSPATH ${newpath}:${CMTROOT}/java/cmt.jar
53  else
54    setenv CLASSPATH ${CMTROOT}/java/cmt.jar
55  endif
56  unset newpath
57endif
58
59alias jcmt '(java cmt_parser)'
60
61# Set MAKEFLAGS, if unset (similar to NPROC with Plan 9 mk utility)
62if ( $?MAKEFLAGS == 0 ) then
63  setenv MAKEFLAGS -j`getconf _NPROCESSORS_ONLN` || unsetenv MAKEFLAGS
64  if ( $?MAKEFLAGS == 1 ) then
65    setenv MAKEFLAGS "${MAKEFLAGS} QUICK=1"
66  else
67    setenv MAKEFLAGS "QUICK=1"
68  endif
69endif
Note: See TracBrowser for help on using the repository browser.