3 #------------------------------------------------------------------
5 # Name: build_larlite.sh
7 # Purpose: Build debug and prof flavors of larlite on Jenkins.
9 # Created: 4-Aug-2017 H. Greenlee
11 #------------------------------------------------------------------
13 echo
"larlite ups version: $UPS_VERSION"
14 echo
"larlite git tag: $GIT_TAG"
15 echo
"qualifier: $QUAL"
16 echo
"build type: $BUILDTYPE"
17 echo
"workspace: $WORKSPACE"
19 # Get number of cores to use.
22 #ncores=`sysctl -n hw.ncpu`
23 #ncores=$(( $ncores / 4 ))
28 if [ $ncores -lt 1 ]; then
31 echo
"Building using $ncores cores."
33 # Environment setup, uses /grid/fermiapp or cvmfs.
35 if [ -f /
grid/fermiapp/products/
uboone/setup_uboone.sh ]; then
37 elif [ -f /cvmfs/
uboone.opensciencegrid.org/products/setup_uboone.sh ]; then
38 if [ -
x /cvmfs/
grid.cern.ch/util/cvmfs-uptodate ]; then
39 /cvmfs/
grid.cern.ch/util/cvmfs-uptodate /cvmfs/
uboone.opensciencegrid.org/products
43 echo
"No setup file found."
47 # Use system git on macos.
53 # Set up working area.
56 rm -rf $WORKSPACE/temp ||
exit 1
59 rm -f $WORKSPACE/copyBack
then source grid fermiapp products dune setup_dune_fermiapp sh exit else echo No setup file found exit fi setup
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]