4 |
# |
# |
5 |
# Setup to build CCF from user's home |
# Setup to build CCF from user's home |
6 |
# |
# |
7 |
# $Id: ccf-setup.sh,v 1.4 2014/12/12 13:47:39 ccflib Exp $ |
# $Id: ccf-setup.sh,v 1.5 2014/12/12 13:49:27 ccflib Exp $ |
8 |
|
|
9 |
|
|
10 |
host=`hostname | cut -d. -f1` |
host=`hostname | cut -d. -f1` |
18 |
case "$cputype" in |
case "$cputype" in |
19 |
i[3,4,5,6]86) kernelbits=32 ; refhost="sasbld01" ;; |
i[3,4,5,6]86) kernelbits=32 ; refhost="sasbld01" ;; |
20 |
x86_64) kernelbits=64 ; refhost="sasbld02" ;; |
x86_64) kernelbits=64 ; refhost="sasbld02" ;; |
21 |
|
sunu4u) kernelbits=32 ; refhost="xvsoc01" ;; |
22 |
esac |
esac |
23 |
|
|
24 |
# Define CCFLIB_HOME |
# Define CCFLIB_HOME |
25 |
|
|
26 |
case "$host" in |
case "$host" in |
27 |
sasbld01) export CCFLIB_HOME=/home/ccflib ;; |
sasbld01) export CCFLIB_HOME=/home/ccflib ;; |
28 |
*) export CCFLIB_HOME=/ccfbuild ;; |
xvsoc01) export CCFLIB_HOME=/data/xmm/ccflib ;; |
29 |
|
*) export CCFLIB_HOME=/ccfbuild ;; |
30 |
esac |
esac |
31 |
|
|
32 |
# Define where is the CCF development software |
# Define where is the CCF development software |
44 |
|
|
45 |
# Heasoft |
# Heasoft |
46 |
|
|
47 |
export HEADAS=/sasbuild/local/${refhost}/headas/architecture |
case "$host" in |
48 |
if [ ! -d "$HEADAS" ] ; then |
xvsoc01) export LHEASOFT=1 ;; |
49 |
echo "ccf-setup.sh: ${HEADAS} does not exist - Abort" |
sasdmz01) export HEADAS=/sasbuild/local/sasdmz01/headas/architecture |
50 |
return |
if [ ! -d "$HEADAS" ] ; then |
51 |
fi |
echo "ccf-setup.sh: ${HEADAS} does not exist - Abort" |
52 |
. ${HEADAS}/headas-init.sh |
return |
53 |
|
fi |
54 |
|
. ${HEADAS}/headas-init.sh ;; |
55 |
|
sasdmz02) export HEADAS=/sasbuild/local/sasdmz02/headas/architecture |
56 |
|
if [ ! -d "$HEADAS" ] ; then |
57 |
|
echo "ccf-setup.sh: ${HEADAS} does not exist - Abort" |
58 |
|
return |
59 |
|
fi |
60 |
|
. ${HEADAS}/headas-init.sh ;; |
61 |
|
*) export HEADAS=/sasbuild/local/${refhost}/headas/architecture |
62 |
|
if [ ! -d "$HEADAS" ] ; then |
63 |
|
echo "ccf-setup.sh: ${HEADAS} does not exist - Abort" |
64 |
|
return |
65 |
|
fi |
66 |
|
. ${HEADAS}/headas-init.sh ;; |
67 |
|
esac |
68 |
|
|
69 |
# SAS |
# SAS |
70 |
|
|
71 |
[ ! -f "$HOME/setsas.sh" ] && /sas/bin/confsas |
case "$host" in |
72 |
. $HOME/setsas.sh 1> /dev/null |
xvsoc01) export SAS_DIR=${CCFLIB_HOME}/xmmsas_20020413_2031 |
73 |
|
export SAS_PATH=$SAS_DIR |
74 |
|
. $SAS_DIR/sas-setup.sh ;; |
75 |
|
*) [ ! -f "$HOME/setsas.sh" ] && /sas/bin/confsas |
76 |
|
. $HOME/setsas.sh 1> /dev/null ;; |
77 |
|
esac |
78 |
|
|
79 |
export SAS_MEMORY_MODEL=Low |
export SAS_MEMORY_MODEL=Low |
80 |
|
|
81 |
# Adds some useful perl modules. |
# Adds some useful perl modules. |