1 |
ccflib |
1.1 |
#! /bin/csh |
2 |
|
|
# |
3 |
|
|
# ccf-setup.csh |
4 |
|
|
# |
5 |
|
|
# Setup to build CCF from user's home |
6 |
|
|
# |
7 |
ccflib |
1.3 |
# $Id: ccf-setup.csh,v 1.2 2014/12/10 10:01:55 ccflib Exp $ |
8 |
ccflib |
1.1 |
|
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 /home/ccflib/perl\:$PERL5LIB |
24 |
|
|
else |
25 |
|
|
setenv PERL5LIB /home/ccflib/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 |
ccflib |
1.3 |
setenv LHEASOFT 1 |
35 |
ccflib |
1.1 |
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 |
ccflib |
1.2 |
setenv CVSROOT ${CCFLIB_HOME}/ccfcvs |
48 |
ccflib |
1.1 |
|
49 |
|
|
# Defines CCFDEV and sources some additional setup |
50 |
|
|
|
51 |
ccflib |
1.2 |
setenv CCFDEV ${CCFLIB_HOME}/ccfdev |
52 |
ccflib |
1.1 |
source $CCFDEV/setup.csh |
53 |
|
|
|
54 |
|
|
# Add the scripts in $CCFLIB_HOME/bin to PATH |
55 |
|
|
|
56 |
ccflib |
1.2 |
setenv PATH ${CCFLIB_HOME}/bin\:$PATH |