3 #------------------------------------------------------------------
5 # Name: build_swtrigger.sh
7 # Purpose: Build debug and prof flavors of swtrigger on Jenkins.
9 # Created: 25-Jun-2015 H. Greenlee
11 #------------------------------------------------------------------
13 echo
"swtrigger version: $VERSION"
14 echo
"qualifier: $QUAL"
15 echo
"build type: $BUILDTYPE"
16 echo
"workspace: $WORKSPACE"
18 # Get number of cores to use.
21 #ncores=`sysctl -n hw.ncpu`
22 #ncores=$(( $ncores / 4 ))
27 if [ $ncores -lt 1 ]; then
30 echo
"Building using $ncores cores."
32 # Environment setup, uses /grid/fermiapp or cvmfs.
34 if [ -f /
grid/fermiapp/products/
uboone/setup_uboone.sh ]; then
36 elif [ -f /cvmfs/
uboone.opensciencegrid.org/products/setup_uboone.sh ]; then
37 if [ -
x /cvmfs/
grid.cern.ch/util/cvmfs-uptodate ]; then
38 /cvmfs/
grid.cern.ch/util/cvmfs-uptodate /cvmfs/
uboone.opensciencegrid.org/products
42 echo
"No setup file found."
46 # Use system git on macos.
52 # Other required setups.
54 setup cetbuildtools v5_04_02
56 # Set up working area.
59 rm -rf $WORKSPACE/temp ||
exit 1
62 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]