1 |
#! /bin/sh |
#! /bin/bash |
2 |
# |
# |
3 |
# Giuseppe Vacanti (cosine) August 2000 |
# ccflib.cfg is sourced by autobuild, getdeliveries, |
4 |
|
# buildlatest and acceptbuild. All run in sasbld01 |
5 |
# |
# |
6 |
|
# $Id: ccflib.cfg,v 1.7 2014/12/12 10:25:01 ccflib Exp $ |
7 |
|
# |
8 |
|
|
9 |
|
export CCFLIB_HOME="/home/ccflib" |
10 |
|
|
11 |
|
# Defines function saslatest to initialise the latest SAS |
12 |
|
|
13 |
saslatest () { |
saslatest () { |
14 |
SAS_DIR=/data/xmm/saslib/installed/deceit |
#[ ! -f "$HOME/setsas.sh" ] && /sas/bin/confsas |
15 |
SAS_PATH=/data/xmm/saslib/installed/deceit |
#/sas/bin/confsas |
16 |
export SAS_DIR |
#. $HOME/setsas.sh 1> /dev/null |
17 |
export SAS_PATH |
. ${CCFLIB_HOME}/local/SAS/xmmsas_20160201_1833/setsas.sh 1> /dev/null |
18 |
export SAS_CCF=$SAS_DIR/lib/testccf |
export SAS_CCF=$SAS_DIR/lib/testccf |
19 |
. $SAS_DIR/sas-setup.sh |
export LHEASOFT=1 |
20 |
|
export SAS_MEMORY_MODEL=Low |
21 |
|
echo $SAS_MEMORY_MODEL |
22 |
echo "SAS set up complete. SAS_DIR = $SAS_DIR" |
echo "SAS set up complete. SAS_DIR = $SAS_DIR" |
23 |
} |
} |
24 |
|
|
25 |
sasexperiment () { |
# These are the directories as seen from |
26 |
SAS_DIR=/data/xmm/saslib/installed/latestDelivered |
ccfstore=${CCFLIB_HOME}/ccfstore |
27 |
SAS_PATH=/data/xmm/saslib/installed/latestDelivered |
ccfrepository=$ccfstore/public |
|
export SAS_DIR |
|
|
export SAS_PATH |
|
|
. $SAS_DIR/sas-setup.sh |
|
|
echo "SAS set up complete. SAS_DIR = $SAS_DIR" |
|
|
} |
|
|
|
|
|
ccfrepository=$HOME/ccf_repository |
|
28 |
ccfdir=$ccfrepository |
ccfdir=$ccfrepository |
29 |
ccfdeveldir=$ccfdir/devel |
ccfrel=$ccfstore/release |
30 |
scisimccfdir=$ccfdir/scisim |
ccfdeveldir=$ccfstore/devel |
31 |
|
scisimccfdir=$ccfstore/scisim |
32 |
|
|
33 |
export PATH |
# Include the subdirectory bin in PATH |
34 |
PATH=$HOME/bin:/usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:$PATH |
|
35 |
|
export PATH=${CCFLIB_HOME}/bin:$PATH |
36 |
|
|
37 |
export LD_LIBRARY_PATH |
# Default creation mask for ccflib (755 or rwxr-xr-x) |
|
LD_LIBRARY_PATH=/usr/local/cfitsio:/usr/local/egcs/lib:/usr/local/gcc/lib:/opt/SUNWspro/lib:/usr/lib:$LD_LIBRARY_PATH |
|
38 |
|
|
39 |
|
umask 022 |