~lbno-nd/lbno-nd/trunk

« back to all changes in this revision

Viewing changes to third_party/install_scripts/install_geant4.sh

  • Committer: tstainer
  • Date: 2014-06-23 09:14:40 UTC
  • Revision ID: tstainer@liv.ac.uk-20140623091440-xo46khop77imcpw5
Updated README.txt and install scripts. Also added splines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
SUCCESS=0
2
2
 
3
 
echo "going to place geant4."${GEANT4_VERSION} "  in " ${THIRD_PARTY_DIR}"/geant4-v."${GEANT4_VERSION}
4
 
cd ${THIRD_PARTY_DIR}
5
 
 
 
3
echo "going to place geant4."${GEANT4_VERSION} "  in "${GEANT4_DIR}
6
4
 
7
5
###################################################################################
8
6
 
9
 
if [ -d geant4-v${GEANT4_VERSION} ];then
10
 
  echo "directory geant4-v${GEANT4_VERSION} already exists. going to remove it."
11
 
  rm -rf geant4-v${GEANT4_VERSION}
 
7
if [ -d ${GEANT4_DIR} ];then
 
8
  echo "directory ${GEANT4_DIR} already exists. going to remove it."
 
9
  rm -rf ${GEANT4_DIR}
12
10
fi
13
11
 
14
 
mkdir geant4-v${GEANT4_VERSION}
15
 
cd geant4-v${GEANT4_VERSION}
 
12
mkdir -p ${GEANT4_DIR}
 
13
cd ${GEANT4_DIR}
16
14
wget http://geant4.cern.ch/support/source/geant4.${GEANT4_VERSION}.tar.gz \
17
15
1>${GEANT4_INSTALL_LOG} 2>${GEANT4_INSTALL_ERR}
18
16
 
46
44
  return
47
45
fi
48
46
 
 
47
echo "Building....."
 
48
 
49
49
make -j${NCPU} 1>>${GEANT4_INSTALL_LOG} 2>>${GEANT4_INSTALL_ERR}
50
50
 
51
51
if [ -f outputs/library/Linux-g++/libG4OpenGL.so ]; then