1 |
#! /bin/bash |
2 |
# |
3 |
# ccflib.cfg is sourced by autobuild, getdeliveries, |
4 |
# buildlatest and acceptbuild. All run in sasbld01 |
5 |
# |
6 |
# $Id: ccflib.cfg,v 1.9 2017/02/20 14:27:19 ccflib Exp $ |
7 |
# |
8 |
|
9 |
export CCFLIB_HOME="/home/ccflib" |
10 |
|
11 |
# Defines function saslatest to initialise the latest SAS |
12 |
|
13 |
saslatest () { |
14 |
#[ ! -f "$HOME/setsas.sh" ] && /sas/bin/confsas |
15 |
#/sas/bin/confsas |
16 |
#. $HOME/setsas.sh 1> /dev/null |
17 |
# export LHEASOFT=1 |
18 |
# Set HEASOFT s/w to be compatible with SAS 16 |
19 |
export HEADAS="/sasbuild/local/old_sasbld01n/GNU_CC_CXX_6.2/headas/architecture" |
20 |
source $HEADAS/headas-init.sh |
21 |
|
22 |
. ${CCFLIB_HOME}/local/SAS/xmmsas_20160201_1833/setsas.sh 1> /dev/null |
23 |
export SAS_CCF=$SAS_DIR/lib/testccf |
24 |
export SAS_MEMORY_MODEL=Low |
25 |
echo $SAS_MEMORY_MODEL |
26 |
echo "SAS set up complete. SAS_DIR = $SAS_DIR" |
27 |
# |
28 |
} |
29 |
|
30 |
# These are the directories as seen from |
31 |
ccfstore=${CCFLIB_HOME}/ccfstore |
32 |
ccfrepository=$ccfstore/public |
33 |
ccfdir=$ccfrepository |
34 |
ccfrel=$ccfstore/release |
35 |
ccfdeveldir=$ccfstore/devel |
36 |
scisimccfdir=$ccfstore/scisim |
37 |
|
38 |
# Include the subdirectory bin in PATH |
39 |
|
40 |
export PATH=${CCFLIB_HOME}/bin:$PATH |
41 |
|
42 |
# Default creation mask for ccflib (755 or rwxr-xr-x) |
43 |
|
44 |
umask 022 |