66
65
##################################################
68
cp -r ${MAUS_ROOT_DIR}/third_party/source/${directory}/examples ${MAUS_ROOT_DIR}/third_party/build/${directory}/examples
69
# copy examples and original source files to the build directory before destroying source
70
cd ${MAUS_ROOT_DIR}/third_party/source/${directory}
71
for d in `find . -name src`; do \cp -fr $d /home/durga/maus-merge/third_party/build/geant4.9.6.p02/$d >& /dev/null; done
69
72
rm -Rf ${MAUS_ROOT_DIR}/third_party/build/${directory_old}
70
73
rm -Rf ${MAUS_ROOT_DIR}/third_party/source/${directory}
79
82
echo "INFO: making environment"
80
cat > ${MAUS_ROOT_DIR}/env_geant4.9.6.p02.sh <<EOF
83
############################## DO NOT EDIT #####################################
84
# This file was automatically generated by the script
85
# ${MAUS_THIRD_PARTY}/third_party/bash/32geant4.9.5.bash
86
# to regenerate MAUS environment with different Geant4 version
87
################################################################################
90
export G4VERS=geant4.9.6.p02
91
export G4SYSTEM=$arch-g++
92
export G4VIS_BUILD_DAWNFILE_DRIVER=1
93
export G4VIS_USE_DAWNFILE=1
96
export OGLHOME=/usr/X11R6
97
export G4DATA="\${MAUS_THIRD_PARTY}/third_party/install/share/Geant4-9.6.2/data"
98
export G4LEDATA="\${G4DATA}/G4EMLOW6.32/"
99
export G4ABLADATA="\${G4DATA}/G4NEUTRONXS1.2/"
100
export G4NEUTRONDATA="\${G4DATA}/G4NDL4.2/"
101
export G4LEVELGAMMADATA="\${G4DATA}/PhotonEvaporation2.3/"
102
export G4RADIOACTIVEDATA="\${G4DATA}/RadioactiveDecay3.6/"
103
export G4SAIDXSDATA="\${G4DATA}/G4SAIDDATA1.1/"
104
# GEANT4 installs to lib64 on 64bit systems
105
export LD_LIBRARY_PATH="${MAUS_THIRD_PARTY}/third_party/install/lib64:${LD_LIBRARY_PATH}"
108
84
echo "FATAL: Source archive still doesn't exist. Please file a bug ">&2
109
85
echo "FATAL: report with your operating system, distribution, and any" >&2