Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:13:24

0001 #!/bin/bash
0002 #
0003 # Simple script to run DD4hep tests
0004 # - sources this${PackageName}.sh first and then
0005 #   calls the command (given as first argument)
0006 #   with all following arguments
0007 #
0008 
0009 #----- initialize environment for this package - including DD4hep 
0010 export DD4hepExamplesINSTALL=@CMAKE_INSTALL_PREFIX@;
0011 source @CMAKE_INSTALL_PREFIX@/bin/this@PackageName@.sh;
0012 #----- parse command line - first argument is the 
0013 #      test to run
0014 command=$1
0015 theargs=""
0016 shift
0017 for i in "$@" ; do
0018     if [ $i != ${command} ] ; then 
0019         theargs="${theargs} $i"
0020     fi
0021 done
0022 
0023 echo " #### LD_LIBRARY_PATH = :  ${LD_LIBRARY_PATH}"
0024 echo " #### DYLD_LIBRARY_PATH = :  ${DYLD_LIBRARY_PATH}"
0025 
0026 echo " ### running test :  '${command} ${theargs}'"
0027 exec ${command} ${theargs}