1 |
#! /bin/csh |
#! /bin/tcsh |
2 |
# |
# |
3 |
# ccf-setup.csh |
# ccf-setup.csh |
4 |
# |
# |
5 |
# Setup to build CCF from user's home |
# Setup to build CCF from user's home |
6 |
# |
# |
7 |
# $Id: ccf-setup.csh,v 1.6 2014/12/11 16:56:54 ccflib Exp $ |
# $Id: ccf-setup.csh,v 1.7 2014/12/12 13:47:43 ccflib Exp $ |
8 |
|
|
9 |
|
|
10 |
set host=`hostname | cut -d. -f1` |
set host=`hostname | cut -d. -f1` |
41 |
|
|
42 |
setenv CCFDEV ${CCFLIB_HOME}/ccfdev |
setenv CCFDEV ${CCFLIB_HOME}/ccfdev |
43 |
|
|
44 |
if ( ! -d "${CCFDEV}" ) then |
if ( ! -d $CCFDEV ) then |
45 |
echo "ccf-setup.csh: ${CCFDEV} not found! - Abort" |
echo "ccf-setup.csh: $CCFDEV not found! - Abort" |
46 |
return |
return |
47 |
endif |
endif |
48 |
|
|
49 |
|
|
50 |
# Set the CVS access to CCF package repository |
# Set the CVS access to CCF package repository |
51 |
|
|
52 |
setenv CVSROOT ${CCFLIB_HOME/ccfcvs |
setenv CVSROOT ${CCFLIB_HOME}/ccfcvs |
53 |
|
|
54 |
# Heasoft |
# Heasoft |
55 |
|
|
56 |
setenv HEADAS "/sasbuild/local/${refhost}/headas/architecture" |
setenv HEADAS "/sasbuild/local/${refhost}/headas/architecture" |
57 |
if ( ! -d "${HEADAS}" ) then |
if ( ! -d $HEADAS ) then |
58 |
echo "ccf-setup.csh: ${HEADAS} does not exist! - Abort" |
echo "ccf-setup.csh: $HEADAS does not exist! - Abort" |
59 |
return |
return |
60 |
endif |
endif |
61 |
source ${HEADAS}/headas-init.csh |
source ${HEADAS}/headas-init.csh |
66 |
/sas/bin/confsas |
/sas/bin/confsas |
67 |
endif |
endif |
68 |
|
|
69 |
source $HOME/setsas.csh |
source $HOME/setsas.csh > /dev/null |
70 |
|
|
71 |
setenv SAS_MEMORY_MODEL Low |
setenv SAS_MEMORY_MODEL Low |
72 |
|
|