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