1 |
#!/bin/bash |
2 |
# |
3 |
# ccf-setup.sh |
4 |
# |
5 |
# Setup to build CCF from user's home |
6 |
# |
7 |
# $Id$ |
8 |
|
9 |
# Define CCFLIB_HOME |
10 |
|
11 |
case "$USER" in |
12 |
ccflib) export CCFLIB_HOME=/home/ccflib ;; |
13 |
*) export CCFLIB_HOME=/ccfbuild ;; |
14 |
esac |
15 |
|
16 |
# Adds some useful perl modules. |
17 |
|
18 |
if [ ! -z $PERL5LIB ]; then |
19 |
export PERL5LIB=${CCFLIB_HOME}/perl\:$PERL5LIB |
20 |
else |
21 |
export PERL5LIB=${CCFLIB_HOME}/perl |
22 |
fi |
23 |
|
24 |
# Initializes the latest SAS installed in /sas |
25 |
|
26 |
[ ! -f "$HOME/setsas.sh" ] && /sas/bin/confsas |
27 |
. $HOME/setsas.sh |
28 |
export SAS_MEMORY_MODEL=Low |
29 |
|
30 |
# Shows SAS version and the versions of deceit and ccfextseq |
31 |
sasversion |
32 |
deceit -v |
33 |
ccfextseq -v |
34 |
|
35 |
# Initialises the CVS environment |
36 |
# Users access through the group permissions instead of using CVS_RSH |
37 |
|
38 |
export CVSROOT=${CCFLIB_HOME}/ccfcvs |
39 |
|
40 |
# Defines CCFDEV and sources some additional setup |
41 |
|
42 |
export CCFDEV=${CCFLIB_HOME}/ccfdev |
43 |
. $CCFDEV/setup.sh |
44 |
|
45 |
# Add the scripts in $CCFLIB_HOME/bin to PATH |
46 |
|
47 |
export PATH=${CCFLIB_HOME}/bin\:$PATH |