Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #!/bin/sh
0002 #
0003 # This script was automatically generated from the scripts/jana-this.sh.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 # BMS_OSNAME
0014 export BMS_OSNAME="@BMS_OSNAME@"
0015 
0016 # JANA2
0017 export JANA_HOME="@JANA_INSTALL_DIR@"
0018 export PATH=@JANA_INSTALL_DIR@/bin:${PATH}
0019 
0020 # ROOT
0021 if [ "@JANA2_HAVE_ROOT@" == "1" ]; then
0022     if [ -f "@ROOTSYS@/bin/thisroot.sh" ]; then
0023         unset ROOTSYS
0024         # workaround for https://github.com/root-project/root/issues/14085
0025         # thisroot.sh does not recognize bash when running in qemu (like eic-shell on Silicon)
0026         pushd @ROOT_BINDIR@ >/dev/null
0027         source thisroot.sh
0028         popd >/dev/null
0029     fi
0030 fi
0031 
0032 # Xerces
0033 if [ "@JANA2_HAVE_XERCES@" == "1" ]; then
0034     export XERCESCROOT="@XERCESCROOT@"
0035     # only add to LD_LIBRARY_PATH if XERCESCROOT does not appear to be a system directory
0036     [[ ${XERCESCROOT} != /usr ]] && export LD_LIBRARY_PATH=${XERCESCROOT}/lib:${LD_LIBRARY_PATH}
0037 fi
0038 
0039 # CCDB
0040 if [ "@HAVE_CCDB@" == "1" ]; then
0041     export CCDB_HOME="@CCDB_HOME@"
0042     export PATH=${CCDB_HOME}/bin:${PATH}
0043     export LD_LIBRARY_PATH=${CCDB_HOME}/lib:${LD_LIBRARY_PATH}
0044 fi
0045 
0046 # MYSQL
0047 # n.b. MySQL compile and link options come from running mysql_config. There is
0048 # not a simple way of setting up the environment for this like other packages.
0049 # Thus, we simply set the JANA2_MYSQL_CONFIG variable to point to the mysql_config
0050 # that was actually used to get the compile/link options when JANA2 was built.
0051 if [ "@HAVE_MYSQL@" == "1" ]; then
0052     export JANA2_MYSQL_CONFIG="@JANA2_MYSQL_CONFIG@"
0053     export LD_LIBRARY_PATH=@MYSQL_PKGLIBDIR@:${LD_LIBRARY_PATH}
0054 fi
0055 
0056 # CURL
0057 if [ "@HAVE_CURL@" == "1" ]; then
0058     export CURL_ROOT="@CURL_ROOT@"
0059     # only add to PATH and LD_LIBRARY_PATH if CURL_ROOT does not appear to be a system directory
0060     [[ ${CURL_ROOT} != /usr ]] && export PATH=${CURL_ROOT}/bin:${PATH}
0061     [[ ${CURL_ROOT} != /usr ]] && export LD_LIBRARY_PATH=${CURL_ROOT}/lib:${LD_LIBRARY_PATH}
0062 fi
0063 
0064 # PYTHON
0065 # Add install directory for Python moduels to the PYTHONPATH (if it exists)
0066 if [ -d @JANA_INSTALL_DIR@/python ]; then
0067     export PYTHONPATH=@JANA_INSTALL_DIR@/python:${PYTHONPATH}
0068 fi