-
Notifications
You must be signed in to change notification settings - Fork 19
/
hpstr-env.sh.in
34 lines (27 loc) · 1016 Bytes
/
hpstr-env.sh.in
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
#!/bin/bash
# This var is used for locating python cfg and JSON files in the project directory.
export HPSTR_BASE=@PROJECT_SOURCE_DIR@
# Set python path.
export PYTHONPATH=@CMAKE_INSTALL_PREFIX@/lib/python:@CMAKE_INSTALL_PREFIX@/lib/python/plotUtils:$PYTHONPATH
# Set system path.
export PATH=@CMAKE_INSTALL_PREFIX@/bin:$PATH
# Set load library path.
export LD_LIBRARY_PATH=@CMAKE_INSTALL_PREFIX@/lib:@LCIO_DIR@/lib:$LD_LIBRARY_PATH
# Setup ROOT if necessary.
if [ ! -n ROOTSYS ]; then
if [ -f @ROOT_DIR@/bin/thisroot.sh ]; then
. @ROOT_DIR@/bin/thisroot.sh
else
echo "ERROR: Could not locate thisroot.sh script to setup ROOT (source before running this script)"
exit 1
fi
fi
if [ -n DYLD_LIBRARY_PATH ]; then
export DYLD_LIBRARY_PATH=@CMAKE_INSTALL_PREFIX@/lib:@LCIO_DIR@/lib:$DYLD_LIBRARY_PATH
fi
# Uncomment to debug env setup.
#echo HPSTR_BASE=$HPSTR_BASE
#echo ROOTSYS=$ROOTSYS
#echo PYTHONPATH=$PYTHONPATH
#echo PATH=$PATH
#echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH