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