Skip to content

Commit

Permalink
Add checks for DAG, show errors also on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
jlingema committed Mar 20, 2017
1 parent b33f590 commit 4fe688d
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,27 @@ fi
if [[ "$unamestr" == 'Linux' ]]; then
platform='Linux'
if [[ -d /cvmfs/fcc.cern.ch/sw ]] ; then
#should check domain to make sure we're at CERN
#or is this software available somewhere in Lyon?
source /cvmfs/fcc.cern.ch/sw/0.8/init_fcc_stack.sh
#should check domain to make sure we're at CERN
#or is this software available somewhere in Lyon?
source /cvmfs/fcc.cern.ch/sw/0.8/init_fcc_stack.sh
else
if [ -z "$PODIO" ]; then
echo "[ERROR] no podio setup detected, make sure it is setup"
exit 1
if [ ! -z "$PODIO" ]; then
export LD_LIBRARY_PATH=$FCCEDM/lib:$PODIO/lib:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH=$FCCEDM/lib:$PODIO/lib:$LD_LIBRARY_PATH
fi
elif [[ "$unamestr" == 'Darwin' ]]; then
platform='Darwin'
export DYLD_LIBRARY_PATH=$FCCEDM/lib:$DYLD_LIBRARY_PATH:$PODIO/lib
if [ ! -z "$PODIO" ]; then
export DYLD_LIBRARY_PATH=$FCCEDM/lib:$DYLD_LIBRARY_PATH:$PODIO/lib
fi
fi
if [ -z "$PODIO" ]; then
echo "[ERROR] no podio setup detected, make sure it is setup"
exit 1
fi
if [ -z "$FCCDAG" ]; then
echo "[ERROR] no dag setup detected, make sure it is setup by setting the FCCDAG environment variable or adding it to your cmake prefix path"
exit 1
fi

echo platform detected: $platform

0 comments on commit 4fe688d

Please sign in to comment.