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.2 |
# $Id: ccf-setup.sh,v 1.1 2014/12/10 09:54:51 ccflib Exp $ |
8 |
ccflib |
1.1 |
|
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 |
ccflib |
1.2 |
export LHEASOFT=1 |
28 |
ccflib |
1.1 |
. $HOME/setsas.sh |
29 |
|
|
export SAS_MEMORY_MODEL=Low |
30 |
|
|
|
31 |
|
|
# Shows SAS version and the versions of deceit and ccfextseq |
32 |
|
|
sasversion |
33 |
|
|
deceit -v |
34 |
|
|
ccfextseq -v |
35 |
|
|
|
36 |
|
|
# Initialises the CVS environment |
37 |
|
|
# Users access through the group permissions instead of using CVS_RSH |
38 |
|
|
|
39 |
|
|
export CVSROOT=${CCFLIB_HOME}/ccfcvs |
40 |
|
|
|
41 |
|
|
# Defines CCFDEV and sources some additional setup |
42 |
|
|
|
43 |
|
|
export CCFDEV=${CCFLIB_HOME}/ccfdev |
44 |
|
|
. $CCFDEV/setup.sh |
45 |
|
|
|
46 |
|
|
# Add the scripts in $CCFLIB_HOME/bin to PATH |
47 |
|
|
|
48 |
|
|
export PATH=${CCFLIB_HOME}/bin\:$PATH |