1 |
#! /bin/csh |
2 |
# |
3 |
# ccf-setup.csh |
4 |
# |
5 |
# Setup to build CCF from user's home |
6 |
# |
7 |
# $Id$ |
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 /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 |
source $HOME/setsas.csh |
35 |
|
36 |
setenv SAS_MEMORY_MODEL Low |
37 |
|
38 |
# Shows SAS version and the versions of deceit and ccfextseq |
39 |
sasversion |
40 |
deceit -v |
41 |
ccfextseq -v |
42 |
|
43 |
# Initialises the CVS environment |
44 |
# Users access through the group permissions instead of using CVS_RSH |
45 |
|
46 |
setenv CVSROOT /home/ccflib/ccfcvs |
47 |
|
48 |
# Defines CCFDEV and sources some additional setup |
49 |
|
50 |
setenv CCFDEV /home/ccflib/ccfdev |
51 |
source $CCFDEV/setup.csh |
52 |
|
53 |
# Add the scripts in $CCFLIB_HOME/bin to PATH |
54 |
|
55 |
setenv PATH /home/ccflib/bin\:$PATH |