4 # A script to build the external GENIE dependencies
6 # Usage: ./build_ext.sh
7 # [--log4cpp-version=...]
9 # [--pythia6-version=...]
10 # [--lhapdf-version=...]
11 # [--root-version=...]
13 # [--arch=linux|linuxx8664gcc|macosx|...]
17 script_location="http://hepunx.rl.ac.uk/~candreop/generators/GENIE/devel/src/scripts/build/ext/"
21 pythia6_version=6.4.12
27 while [ $# -gt 0 ] ; do
48 if [ ! -d ${topdir} ] ; then
53 for subdir in pythia6 lhapdf gsl root log4cpp; do
54 if [ ! -d ${subdir} ] ; then
60 # wget or curl for retreiving remote files?
61 # (OS X doesn't generally have wget on it, so fall back on curl in that case)
63 whichfetchit=`which wget | grep -v "no wget in"`
64 if [ ! -z "${whichfetchit}" ] ; then
65 echo use \"wget\" for fetching files
68 whichfetchit=`which curl | grep -v "no curl in"`
69 if [ ! -z "${whichfetchit}" ] ; then
70 # -f = fail without creating dummy, -O output local named like remoteza
71 echo use \"curl -f -O\" for fetching files
74 echo "Neither wget nor curl available -- can't download files"
83 $fetchit $script_location/build_pythia6.sh
84 source build_pythia6.sh $pythia6_version
90 $fetchit $script_location/build_lhapdf.sh
91 source build_lhapdf.sh $lhapdf_version
97 $fetchit $script_location/build_gsl.sh
98 source build_gsl.sh $gsl_version
104 $fetchit $script_location/build_root.sh
105 source build_root.sh $root_version --arch=$arch
111 $fetchit $script_location/build_log4cpp.sh
112 source build_log4cpp.sh $log4cpp_version