forked from JeffersonLab/hcana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.csh
32 lines (30 loc) · 992 Bytes
/
setup.csh
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
#!/bin/csh
if ( -r "./setup.csh" ) then
set MYDIR=`pwd`
if ($?prompt) then
echo "--> Setting HCANALYZER to '$MYDIR'"
endif
else
if ( "$1" == "" ) then
echo "ERROR: 'setup.csh' should have a path to the hcana location as its argument."
echo " Often this is also the location of the setup.csh script itself:"
echo " source /my/path/to/setup.csh /my/path/to/setup.csh"
echo " Or, if you have already cd'd into the hcana directory, then you can call:"
echo ' source setup.csh `pwd`'
exit 1
else
set MYDIR=$1
endif
endif
setenv ANALYZER $MYDIR/podd
setenv HCANALYZER $MYDIR
# Check if LD_LIBRARY_PATH is defined
if ( ! ($?LD_LIBRARY_PATH) ) then
setenv LD_LIBRARY_PATH ""
endif
# Check if DYLD_LIBRARY_PATH is defined
if ( ! ($?DYLD_LIBRARY_PATH) ) then
setenv DYLD_LIBRARY_PATH ""
endif
setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${ANALYZER}:${HCANALYZER}"
setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${ANALYZER}:${HCANALYZER}"