Commit e9306831 authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

adress optional variable in initialization

parent be762efe
#
export PYTHONPATH=${PICO_CODE}:$PYTHONPATH
if [ -z "$CMTCLASS" ] ; then
echo "CMTCLASS is undefined"
return
else
export CMTPATH=${CMTCLASS}
fi
#common
source $CLIKDIR/bin/clik_profile.sh
CLIKCFLAGS=`$CLIKDIR/bin/clik-config --cflags`
export CLIKCFLAGS
CLIKLIBS=$($CLIKDIR/bin/clik-config --libs | sed 's/,-Bdynamic-Wl//g')
export CLIKLIBS
echo "Using Planck code from: $CLIKDIR"
echo "Using pico(v3.2) with training file: ${PICO_DATA}"
#CLIK support
if [ ! -z "$CLIKDIR" ] ; then
source $CLIKDIR/bin/clik_profile.sh
CLIKCFLAGS=`$CLIKDIR/bin/clik-config --cflags`
export CLIKCFLAGS
CLIKLIBS=$($CLIKDIR/bin/clik-config --libs | sed 's/,-Bdynamic-Wl//g')
export CLIKLIBS
echo "Using Planck software from: $CLIKDIR"
fi
if [ ! -f setup.sh ] ; then
echo "no setup.sh found: running cmt config"
......@@ -21,20 +24,37 @@ fi
source ./setup.sh
echo "CAMELROOT=$CAMELROOT"
#creating link if necessary
if [ ! -h ../par/planck_data ] ; then
ln -sf ${PLANCK_DATA} ${CAMELROOT}/par/planck_data
echo "creating par/planck_data link ->${PLANCK_DATA}"
if [ ! -z "${PLANCK_DATA}" ] ; then
echo "PLANCK_DATA=${PLANCK_DATA}"
if [ ! -h ../par/planck_data ] ; then
ln -sf ${PLANCK_DATA} ${CAMELROOT}/par/planck_data
echo "creating a link in directory par/"
fi
else
echo "no PLANCK_DATA defined"
fi
if [ ! -h ../par/hillipop_data ] ; then
ln -sf ${HILLIPOP_DATA} ${CAMELROOT}/par/hillipop_data
echo "creating par/hillipop_data link ->${HILLIPOP_DATA}"
if [ ! -z "${HILLIPOP_DATA}" ] ; then
if [ ! -h ../par/hillipop_data ] ; then
ln -sf ${HILLIPOP_DATA} ${CAMELROOT}/par/hillipop_data
echo "creating par/hillipop_data link ->${HILLIPOP_DATA}"
fi
else
echo "HILLIPOP_DATA not used"
fi
#echo "Using project $CMTPATH"
cmt show uses
#too see details during compilation uncomment
#export VERBOSE=1
export PYTHONPATH=${CAMELROOT}/batch/python:$PYTHONPATH
if [ -n "${PICO_CODE}" ] && [ -n "${PICO_DATA}" ] ; then
echo "Using pico(v3.2) with training file: ${PICO_DATA}"
export PYTHONPATH=${PICO_CODE}:${CAMELROOT}/batch/python:$PYTHONPATH
else
echo "not using PICO"
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment