All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
build-lar-products.sh File Reference

Go to the source code of this file.

Functions

 usage ()
 
 have_label ()
 

Variables

while getopts
 
do case
 
*usage exit esac done shift
expr $OPTIND 
OPTIND
 
 IFS =:
 
 quals
 
 prof
 

Function Documentation

have_label ( )

Definition at line 19 of file build-lar-products.sh.

19  {
20  for label in "${labels[@]}"; do
21  for wanted in "$@"; do
22  [[ "${label}" == "${wanted}" ]] && return 0
23  done
24  done
25  return 1
26 }
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
usage ( )

Definition at line 5 of file build-lar-products.sh.

6 {
7  cat 1>&2 <<EOF
8 Usage: $(basename ${0}) [-h]
9  $(basename ${0}) <version> <qual_set> <build_type>
10  env WORKSPACE=<workspace> LARVER=<larsoft version> QUAL=<qualifier> BUILDTYPE=<debug|prof> $(basename ${0})
11 
12 Options:
13 
14  -h This help.
15 
16 EOF
17 }
while getopts h
do case in h help echo Usage
Definition: file_to_url.sh:42
then QUAL

Variable Documentation

*usage exit esac case
Initial value:
{OPT} in
h)
exit 1
usage
Definition: doGit.sh:21
while getopts h
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in

Definition at line 30 of file build-lar-products.sh.

while getopts

Definition at line 29 of file build-lar-products.sh.

IFS =:

Definition at line 46 of file build-lar-products.sh.

* usage exit esac done shift expr $OPTIND OPTIND
Initial value:
=1
working_dir="${WORKSPACE:-$(pwd)}"
version="${1:-${LARVER}}"
qual_set="${2:-${QUAL}}"
oIFS=${IFS}

Definition at line 41 of file build-lar-products.sh.

prof

Definition at line 61 of file build-lar-products.sh.

quals
Initial value:
=(${qual_set
build_type="${3:-${BUILDTYPE}}"
for onequal in "${quals[@]}"; do
if [[ "${onequal}" =~ ^([ec])([0-9]+)$ ]]; then
basequal=${onequal}
elif [[ "${onequal}" =~ ^(s)([1-9][0-9]+)$ ]]; then
squal=${onequal}
else
labels+=${onequal}
done
case ${build_type} in
* labels
then source cvmfs dune opensciencegrid org products dune setup_dune sh exit elif[-f/grid/fermiapp/products/dune/setup_dune_fermiapp.sh]
then shift fi
then basequal
Definition: buildUboone2.sh:26
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
Definition: file_to_url.sh:60
s7[0-9] s8[0-9] s9[0-9] squal

Definition at line 46 of file build-lar-products.sh.