sourceme-ups.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 # source sourceme-ups.sh [version [qual]]
4 
5 # This sets up a bash shell to use UPS products to supply WCT build
6 # and runtime environment. For building see wct-configure-for-ups.sh
7 # in this same directory. Although Wire Cell Toolkit does not depend
8 # on LArSoft, the environment is configured by piggy-backing on a
9 # "larsoft" UPS product of the given version and qualifiers.
10 
11 version=${1:-v06_76_00}
12 quals=${2:-e15:prof}
13 
14 source /cvmfs/larsoft.opensciencegrid.org/products/setup
15 
16 setup larsoft $version -q $quals
17 
18 export CXX=clang++
19 export CC=clang
20 
21 # installed system git on Fermilab systems is too old so also set it up.
22 setup git
23 
24 
25 srcdir=$(dirname $(dirname $(readlink -f $BASH_SOURCE)))
26 
27 export WIRECELL_DATA=$srcdir/cfg
28 echo "You will need to add your wire-cell-data directory to \$WIRECELL_DATA (currently $WIRECELL_DATA)"