Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:16:00

0001 #!/bin/sh
0002 
0003 export DETECTOR=@PROJECT_NAME@
0004 export DETECTOR_PATH=@CMAKE_INSTALL_FULL_DATADIR@/@PROJECT_NAME@
0005 export DETECTOR_CONFIG=${1:-@PROJECT_NAME@}
0006 export DETECTOR_VERSION=@CMAKE_PROJECT_VERSION@
0007 
0008 ## Warn is not the right name (this script is sourced, hence $1)
0009 if [[ "$(basename ${BASH_SOURCE[0]})" != "thisepic.sh" ]]; then
0010         echo "Warning: This script will cease to exist at '$(realpath --no-symlinks ${BASH_SOURCE[0]})'."
0011         echo "         Please use the version at '$(realpath --no-symlinks $(dirname ${BASH_SOURCE[0]})/bin/thisepic.sh)'."
0012 fi
0013 
0014 ## Export detector libraries
0015 if [[ "$(uname -s)" = "Darwin" ]] || [[ "$OSTYPE" == "darwin"* ]]; then
0016         export DYLD_LIBRARY_PATH="@CMAKE_INSTALL_FULL_LIBDIR@${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH}"
0017 else
0018         export LD_LIBRARY_PATH="@CMAKE_INSTALL_FULL_LIBDIR@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
0019 fi