forked from AIDASoft/podio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
executable file
·24 lines (21 loc) · 881 Bytes
/
init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
platform='unknown'
sw_afs=0
unamestr=`uname`
export PODIO=$PWD/install
if [[ "$unamestr" == 'Linux' ]]; then
platform='Linux'
if [[ -d /afs/cern.ch/sw/lcg ]] && [[ `dnsdomainname` = 'cern.ch' ]] ; then
#should check domain to make sure we're at CERN
#or is this software available somewhere in Lyon?
sw_afs=1
source /afs/cern.ch/sw/lcg/views/LCG_83/x86_64-slc6-gcc49-opt/setup.sh
export CMAKE_PREFIX_PATH=/afs/cern.ch/sw/lcg/releases/gtest/1.7.0-4f83b/x86_64-slc6-gcc49-opt/
echo cmake and root taken from /afs/cern.ch/sw/lcg
fi
export LD_LIBRARY_PATH=$PODIO/tests:$PODIO/lib:$PODIO/examples:$LD_LIBRARY_PATH
elif [[ "$unamestr" == 'Darwin' ]]; then
platform='Darwin'
export DYLD_LIBRARY_PATH=$PODIO/tests:$PODIO/lib:$PODIO/examples:$DYLD_LIBRARY_PATH
fi
echo platform detected: $platform
export PYTHONPATH=$PODIO/python:$PYTHONPATH