forked from JETSCAPE/JETSCAPE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
activate_jetscape.sh
56 lines (47 loc) · 1.64 KB
/
activate_jetscape.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh
###############################################################################
# Copyright (c) The JETSCAPE Collaboration, 2018
#
# For the list of contributors see AUTHORS.
#
# Report issues at https://github.com/JETSCAPE/JETSCAPE/issues
#
# or via email to [email protected]
#
# Distributed under the GNU General Public License 3.0 (GPLv3 or later).
# See COPYING for details.
##############################################################################
if [ -z $LD_LIBRARY_PATH ]; then
export LD_LIBRARY_PATH
fi
if [ -z $DYLD_LIBRARY_PATH ]; then
export DYLD_LIBRARY_PATH
fi
export BASEDIR=${HOME}
export PYTHIAINSTALLDIR=/usr/local/Cellar
export JetScape=${PWD}/lib
export LD_LIBRARY_PATH=${JetScape}:${LD_LIBRARY_PATH}
#only for Mac needed
export DYLD_LIBRARY_PATH=${JetScape}:${DYLD_LIBRARY_PATH}
# PYTHIA8 directory
export PYTHIA8DIR=${PYTHIAINSTALLDIR}
export PYTHIA8_ROOT_DIR=${PYTHIAINSTALLDIR}
#export PYTHIA8_INCLUDE_DIR=`${PYTHIA8DIR}/bin/pythia8-config --includedir`/Pythia8
#export PYTHIA8_LIBRARIES=`${PYTHIA8DIR}/bin/pythia8-config --libdir`
export LD_LIBRARY_PATH=${PYTHIA8DIR}/lib:${LD_LIBRARY_PATH}
export DYLD_LIBRARY_PATH=${PYTHIA8DIR}/lib:${DYLD_LIBRARY_PATH}
#ROOT setup
export ROOTSYS="/opt/local/libexec/root5"
export LD_LIBRARY_PATH=${ROOTSYS}/lib:${LD_LIBRARY_PATH}
if [ -z ${TERM} -o -z ${SHELL} ]; then exit 0
fi
echo ''
echo 'Setup JetScape Library'
echo '======================'
echo ''
echo "<I>---------------Info--------------------<I>"
echo "Setting up the following environments: "
echo "JetScape: " ${JetScape}
echo "Pythia8: "${PYTHIA8DIR}/lib
echo "<I>---------------Info--------------------<I>"
echo ""