1 |
#! /bin/csh |
2 |
# |
3 |
# ccf-setup.csh |
4 |
# |
5 |
# Setup to build CCF from user's home |
6 |
# |
7 |
# $Id: ccf-setup.csh,v 1.3 2014/12/10 10:58:21 ccflib Exp $ |
8 |
|
9 |
# Define CCFLIB_HOME |
10 |
|
11 |
switch ($USER) |
12 |
case [ccflib]: |
13 |
setenv CCFLIB_HOME "/home/ccflib" |
14 |
breaksw |
15 |
default : |
16 |
setenv CCFLIB_HOME "/ccfbuild" |
17 |
breaksw |
18 |
endsw |
19 |
|
20 |
# Add some useful perl modules |
21 |
|
22 |
if ( $?PERL5LIB ) then |
23 |
setenv PERL5LIB ${CCFLIB_HOME}/perl\:$PERL5LIB |
24 |
else |
25 |
setenv PERL5LIB ${CCFLIB_HOME}/perl |
26 |
endif |
27 |
|
28 |
# Initialises the latest SAS installed in /sas |
29 |
|
30 |
if ( ! -f "$HOME/setsas.csh" ) then |
31 |
/sas/bin/confsas |
32 |
endif |
33 |
|
34 |
setenv LHEASOFT 1 |
35 |
source $HOME/setsas.csh |
36 |
|
37 |
setenv SAS_MEMORY_MODEL Low |
38 |
|
39 |
# Shows SAS version and the versions of deceit and ccfextseq |
40 |
sasversion |
41 |
deceit -v |
42 |
ccfextseq -v |
43 |
|
44 |
# Initialises the CVS environment |
45 |
# Users access through the group permissions instead of using CVS_RSH |
46 |
|
47 |
setenv CVSROOT ${CCFLIB_HOME}/ccfcvs |
48 |
|
49 |
# Defines CCFDEV and sources some additional setup |
50 |
|
51 |
setenv CCFDEV ${CCFLIB_HOME}/ccfdev |
52 |
source $CCFDEV/setup.csh |
53 |
|
54 |
# Add the scripts in $CCFLIB_HOME/bin to PATH |
55 |
|
56 |
setenv PATH ${CCFLIB_HOME}/bin\:$PATH |