~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to third_party/bash/35geant4.9.6.bash

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        echo
49
49
        sleep 1
50
50
        cmake -DCMAKE_INSTALL_PREFIX=${MAUS_ROOT_DIR}/third_party/install/ -DEXPAT_INCLUDE_DIR=${MAUS_ROOT_DIR}/third_party/install/include -DEXPAT_LIBRARY=${MAUS_ROOT_DIR}/third_party/install/lib/libexpat.so -DGEANT4_INSTALL_DATA=ON ${MAUS_ROOT_DIR}/third_party/source/${directory}
51
 
 
52
51
        echo
53
52
        echo "INFO: Running make:"
54
53
        echo
66
65
                ################################################## 
67
66
        if [ $? == 0 ]
68
67
        then
 
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}
71
74
            echo
77
80
            exit 1
78
81
        fi
79
82
        echo "INFO: making environment"
80
 
        cat > ${MAUS_ROOT_DIR}/env_geant4.9.6.p02.sh <<EOF
81
 
#/bin/sh
82
 
 
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
 
################################################################################
88
 
 
89
 
export G4DEBUG=1
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
94
 
export G4VIS_USE=0
95
 
export G4OPTIMISE=2
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}"
106
 
EOF
107
83
    else
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