3 #------------------------------------------------------------------
5 # Name: build_uboonedaq_datatypes.sh
7 # Purpose: Build debug and prof flavors of uboonedaq_datatypes
10 # Created: 25-Jun-2015 H. Greenlee
12 #------------------------------------------------------------------
14 echo
"uboonedaq_datatypes version: $VERSION"
15 echo
"Qualifier: $QUAL"
16 echo
"build type: $BUILDTYPE"
17 echo
"workspace: $WORKSPACE"
19 # Make a workspace without colons.
21 export WORKSPACE2=`echo $WORKSPACE | tr : -`
22 echo
"workspace 2: $WORKSPACE2"
25 # Get number of cores to use.
28 #ncores=`sysctl -n hw.ncpu`
29 #ncores=$(( $ncores / 4 ))
34 if [ $ncores -lt 1 ]; then
37 echo
"Building using $ncores cores."
39 # Interpret build type.
42 if [ $BUILDTYPE =
debug ]; then
47 echo
"Unknown build type $BUILDTYPE"
51 # Environment setup, uses /grid/fermiapp or cvmfs.
53 if [ -f /
grid/fermiapp/products/
uboone/setup_uboone.sh ]; then
55 elif [ -f /cvmfs/
uboone.opensciencegrid.org/products/setup_uboone.sh ]; then
56 if [ -
x /cvmfs/
grid.cern.ch/util/cvmfs-uptodate ]; then
57 /cvmfs/
grid.cern.ch/util/cvmfs-uptodate /cvmfs/
uboone.opensciencegrid.org/products
61 echo
"No setup file found."
65 # Use system git on macos.
71 # Set up working area.
74 rm -rf $WORKSPACE2/temp ||
exit 1
77 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]