Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:17:18

0001 #!/bin/csh
0002 #
0003 # This script was automatically generated from the scripts/jana-this.csh.in file in the
0004 # JANA2 source directory when JANA2 was built. It can be sourced to set the environment
0005 # up to use this JANA2 build. This includes setting environment variables for some
0006 # 3rd party packages that were used to build JANA2.
0007 #
0008 # n.b. the variable replacements done at build time come from cmake/MakeConfig.cmake
0009 # in the JANA2 source which explicitly creates the installed file.
0010 #
0011 #
0012 
0013 # tcsh gives errors if accessing LD_LIBRARY_PATH when not set. This saves a few lines
0014 # by requiring a check every time we extend it below.
0015 set MY_TMP_LD_LIBRARY_PATH="" 
0016 if ( $?LD_LIBRARY_PATH ) then
0017         set MY_TMP_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
0018 endif
0019 
0020 #--------------------------------------------------------------------------------------
0021 
0022 
0023 # BMS_OSNAME
0024 setenv BMS_OSNAME "@BMS_OSNAME@"
0025 
0026 # JANA2
0027 setenv JANA_HOME "@JANA_INSTALL_DIR@"
0028 setenv PATH @JANA_INSTALL_DIR@/bin:${PATH}
0029 
0030 # ROOT
0031 if ( "@JANA2_HAVE_ROOT@" == "1" ) then
0032     if ( -f "@ROOTSYS@/bin/thisroot.csh" ) then
0033         unsetenv ROOTSYS
0034         source  "@ROOTSYS@/bin/thisroot.csh"
0035     endif
0036 endif
0037 
0038 # Xerces
0039 if ( "@JANA2_HAVE_XERCES@" == "1" ) then
0040     setenv XERCESCROOT "@XERCESCROOT@"
0041     # only add to LD_LIBRARY_PATH if XERCESCROOT does not appear to be a system directory
0042     if ( ${XERCESCROOT} != /usr ) set MY_TMP_LD_LIBRARY_PATH=${XERCESCROOT}/lib:${MY_TMP_LD_LIBRARY_PATH}
0043 endif
0044 
0045 # CCDB
0046 if ( "@HAVE_CCDB@" == "1" ) then
0047     setenv CCDB_HOME "@CCDB_HOME@"
0048     setenv PATH ${CCDB_HOME}/bin:${PATH}
0049     set MY_TMP_LD_LIBRARY_PATH=${CCDB_HOME}/lib:${MY_TMP_LD_LIBRARY_PATH}
0050 endif
0051 
0052 # MYSQL
0053 # n.b. MySQL compile and link options come from running mysql_config. There is
0054 # not a simple way of setting up the environment for this like other packages.
0055 # Thus, we simply set the JANA2_MYSQL_CONFIG variable to point to the mysql_config
0056 # that was actually used to get the compile/link options when JANA2 was built.
0057 if ( "@HAVE_MYSQL@" == "1" ) then
0058     setenv JANA2_MYSQL_CONFIG "@JANA2_MYSQL_CONFIG@"
0059     set MY_TMP_LD_LIBRARY_PATH=@MYSQL_PKGLIBDIR@:${MY_TMP_LD_LIBRARY_PATH}
0060 endif
0061 
0062 # CURL
0063 if ( "@HAVE_CURL@" == "1" ) then
0064     setenv CURL_ROOT "@CURL_ROOT@"
0065     # only add to PATH and LD_LIBRARY_PATH if CURL_ROOT does not appear to be a system directory
0066     if ( ${CURL_ROOT} != /usr ) then
0067         setenv PATH ${CURL_ROOT}/bin:${PATH}
0068         set MY_TMP_LD_LIBRARY_PATH=${CURL_ROOT}/lib:${MY_TMP_LD_LIBRARY_PATH}
0069     endif
0070 endif
0071 
0072 # PYTHON
0073 # Add install directory for Python moduels to the PYTHONPATH (if it exists)
0074 if ( -d @JANA_INSTALL_DIR@/python ) then
0075     if ( $?PYTHONPATH ) then
0076         setenv PYTHONPATH @JANA_INSTALL_DIR@/python:${PYTHONPATH}
0077     else
0078         setenv PYTHONPATH @JANA_INSTALL_DIR@/python
0079     endif
0080 endif
0081 
0082 #--------------------------------------------------------------------------------------
0083 
0084 # Overwrite LD_LIBRARY_PATH with new values (assuming it is not empty)
0085 if ( "$MY_TMP_LD_LIBRARY_PATH" !~ "" ) setenv LD_LIBRARY_PATH "$MY_TMP_LD_LIBRARY_PATH"