Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:14:37

0001 #!/bin/bash
0002 ARCH_OS=$1;
0003 GCC_VSN=$2;
0004 export LCG_external_area=/afs/cern.ch/sw/lcg/external;
0005 if test -z "$GCC_VSN";
0006 then
0007     export GCC_VSN=gcc46;
0008     echo "Using default gcc version:${GCC_VSN}";
0009 fi;
0010 if test -z "${ARCH_OS}";
0011 then
0012     export ARCH_OS=slc6;
0013     echo "Using default architecture version:${ARCH_OS}";
0014 fi;
0015 
0016 if test -n "${ARCH_OS}";
0017 then 
0018     if test -n "${GCC_VSN}";
0019     then
0020         svn co https://svnsrv.desy.de/basic/aidasoft/DD4hep/trunk DD4hep
0021         export BUILD_DIR=`pwd`/${ARCH_OS}-${GCC_VSN};
0022         export ARCH=x86_64-${ARCH_OS};
0023         if test $GCC_VSN = "gcc46";
0024         then 
0025             . ${LCG_external_area}/gcc/4.6/${ARCH}/setup.sh /afs/cern.ch/sw/lcg/external;
0026         fi;
0027         if test $GCC_VSN = "gcc43";
0028         then
0029             . ${LCG_external_area}/gcc/4.3/${ARCH}/setup.sh /afs/cern.ch/sw/lcg/external;
0030         fi;
0031         export ROOTSYS=/afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.04/${ARCH}-${GCC_VSN}-dbg/root;
0032         export LD_LIBRARY_PATH=PATH=${ROOTSYS}/bin:$LD_LIBRARY_PATH;
0033         export PATH=${ROOTSYS}/bin:$PATH;
0034 
0035         echo "CMAKE: `which cmake`   --  ${LCG_external_area}/CMake/2.8.6/${ARCH}-${GCC_VSN}-opt/bin";
0036         #echo "PATH=${PATH}";
0037         echo "`pwd`";
0038         mkdir ${BUILD_DIR};
0039         cd    ${BUILD_DIR};
0040         cmake -DCMAKE_BUILD_TYPE=Debug -DDD4HEP_USE_GEANT4=OFF -DDD4HEP_USE_PYROOT=OFF ${BUILD_DIR}/DD4hep;
0041         make -j 5;
0042         . thisdd4hep.sh;
0043         export LD_LIBRARY_PATH=${BUILD_DIR}/lib:${BUILD_DIR}/../DD4hep/examples/CLICSiD/lib:$LD_LIBRARY_PATH;
0044         ./bin/geoDisplay file:../DD4hep/examples/CLICSiD/compact/compact_polycones.xml    
0045         echo "";
0046         echo "Did the simple test detector show up properly?";
0047         echo "";
0048     else
0049         echo "You must supply the architecture as first argument:";
0050         echo "$0 [os-version:slc5,slc6]  [gcc-version:gcc43,gcc46]";
0051     fi;
0052 else
0053     echo "You must supply the architecture as first argument:";
0054     echo "$0 [os-version:slc5,slc6]  [gcc-version:gcc43,gcc46]";
0055 fi;