3 # pull source code in $WORKSPACE/source
4 # build in $WORKSPACE/build
5 # copyback directory is $WORKSPACE/copyBack
7 # this script is just for building release candidates
12 Usage: $(basename ${0}) [-
h]
13 $(basename ${0}) <
version> <qual_set> <build_type>
21 qual_set Supported qualifier sets: s8:e7, s11:e7
37 shift `expr $OPTIND - 1`
40 working_dir=${WORKSPACE}
43 build_type=${BUILDTYPE}
105 OSnum=`uname -
r | cut -f1 -d
"."`
106 xver=`xcodebuild -
version | grep Xcode | cut -f2 -d
" " | cut -f1 -d
"."`
107 xcver=`xcodebuild -
version | grep Xcode`
108 if [[ ${
basequal} == e9 ]] && [[ ${xver} < 7 ]] && [[ ${OSnum} > 13 ]]
110 echo
"${basequal} build not supported on `uname -s`${OSnum} with ${xcver}"
115 dotver=`echo ${
version} | sed -
e 's/_/./g' | sed -
e 's/^v//'`
117 echo
"building the larsoft base distribution for ${version} ${dotver} ${qual_set} ${build_type}"
120 if [
"${OS}" =
"Linux" ]
123 if [
"${id}" =
"Ubuntu" ]
125 flvr=u`lsb_release -
r | sed -
e 's/[[:space:]]//g' | cut -f2 -d
":" | cut -f1 -d
"."`
127 flvr=slf`lsb_release -
r | sed -
e 's/[[:space:]]//g' | cut -f2 -d
":" | cut -f1 -d
"."`
129 elif [
"${OS}" =
"Darwin" ]
131 flvr=d`uname -
r | cut -f1 -d
"."`
133 echo
"ERROR: unrecognized operating system ${OS}"
136 echo
"build flavor is ${flvr}"
139 qualdir=`echo ${qual_set} | sed -
e 's%:%-%'`
143 blddir=${working_dir}/build
144 srcdir=${working_dir}/
source
145 # start with clean directories
148 rm -rf $WORKSPACE/copyBack
149 # now make the dfirectories
155 curl --fail --silent --location --insecure -
O http:
157 # source code tarballs MUST be pulled first
158 ./pullProducts ${blddir}
source lar_product_stack-${
version} || \
170 ./pullProducts ${blddir}
source larsoftobj-${objver} || \
*usage exit esac done shift expr $OPTIND OPTIND
process_name opflash particleana ie x
then cvmfs grid cern ch util cvmfs uptodate cvmfs uboone opensciencegrid org products fi source cvmfs uboone opensciencegrid org products setup_uboone sh exit else echo No setup file found exit fi if!uname grep q Darwin
then source cvmfs dune opensciencegrid org products dune setup_dune sh exit elif[-f/grid/fermiapp/products/dune/setup_dune_fermiapp.sh]
process_name tightIsolTest check
do case in h help echo Usage
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
then echo File list $list not found else cat $list while read file do echo $file sed s
then echo ***************************************echo Variable FHICL_FILE_PATH not found echo You porbably haven t set up larsoft echo Try setup uboonecode vXX_XX_XX q e10
s7[0-9] s8[0-9] s9[0-9] squal