forked from JeffersonLab/bdxReco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathset_env.csh
46 lines (32 loc) · 1.08 KB
/
set_env.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/tcsh -f
#print only if there is a prompt
alias echo 'if($?prompt) echo \!* '
echo
if(! $?BDXRECO_ROOT) then
echo "BDXRECO_ROOT was not set properly"
exit
endif
echo "BDXRECO_ROOT set to $BDXRECO_ROOT"
#set MYSQLHOST=g3db.ge.infn.it
set MYSQLHOST=clasdb.jlab.org
set MYSQLUSER=bdxreader
#set MYSQLDB=gr3db
set MYSQLDB=BDX
#setenv JANA_CALIB_URL sqlite:///$BDXRECO_ROOT/calib/ccdb.calib
setenv JANA_CALIB_URL mysql://$MYSQLUSER@$MYSQLHOST/$MYSQLDB
#setenv JANA_CALIB_URL mysql://mysql://bdxreader:g3db/gr3db
setenv JANA_PLUGIN_PATH $BDXRECO_ROOT/lib:$BDXRECO_ROOT/lib/plugins:$BDXRECO_ROOT/lib/users
#a.c. this is a work-around for MAC, where -rpath doens't work!!
#also do this on linux for genoa farm
if (! $?DYLD_LIBRARY_PATH) then
setenv DYLD_LIBRARY_PATH ""
endif
if (! $?LD_LIBRARY_PATH) then
setenv LD_LIBRARY_PATH ""
endif
setenv DYLD_LIBRARY_PATH ${BDXRECO_ROOT}/lib:${DYLD_LIBRARY_PATH}
setenv LD_LIBRARY_PATH ${BDXRECO_ROOT}/lib:${LD_LIBRARY_PATH}
#This is for cmsg
setenv CMSGROOT ${BDXRECO_ROOT}/src/external/cMsg-3.6/java
echo
unalias echo