All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sbndpoms_wrapperfcl_maker.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 #Take in all of the arguments
4 while :; do
5  case $1 in
6  -h|-\?|--help)
7  show_help # Display a usage synopsis.
8  exit
9  ;;
10  --fclname) # Takes an option argument; ensure it has been specified.
11  if [ "$2" ]; then
12  FCLNAME="$2"
13  shift
14  else
15  echo "$0 ERROR: fclname requires a non-empty option argument."
16  exit 1
17  fi
18  ;;
19  --wrappername) # Takes an option argument; ensure it has been specified.
20  if [ "$2" ]; then
22  shift
23  else
24  echo "$0 ERROR: wrappername requires a non-empty option argument."
25  exit 1
26  fi
27  ;;
28 
29 # --file=?*)
30 # file=${1#*=} # Delete everything up to "=" and assign the remainder.
31 # ;;
32 # --file=) # Handle the case of an empty --file=
33 # echo 'ERROR: "--file" requires a non-empty option argument.'
34 # ;;
35  -v|--verbose)
36  verbose=$((verbose + 1)) # Each -v adds 1 to verbosity.
37  ;;
38  --) # End of all options.
39  shift
40  break
41  ;;
42  -?*)
43  printf "$0 WARN: Unknown option (ignored): %s\n" "$1" >&2
44  ;;
45  *) # Default case: No more options, so break out of the loop.
46  break
47  esac
48  shift
49 done
50 
51 if [ -z "$FCLNAME" ]; then
52  echo "$0 ERROR: fclname is mandatory"
53  exit 2
54 fi
55 echo "$0: FCLNAME is $FCLNAME"
56 
57 if [ -z "$WRAPPERNAME" ]; then
58  echo "$0 ERROR: wrappername is mandatory"
59  exit 2
60 fi
61 echo "$0: WRAPPERNAME is $WRAPPERNAME"
62 
63 
64 #Start the injection
65 echo "#Wrapper fcl created by $0" >> $WRAPPERNAME
66 echo -e "#include \"$FCLNAME\"" >> $WRAPPERNAME
process_name opflash particleana ie ie ie z
#define the
shift
Definition: fcl_checks.sh:26
then WRAPPERNAME
usage
Definition: doGit.sh:21
then echo Sam station was not specified(use option--sam_station)." exit 1 fi if [ x$SAM_GROUP
process_name gaushit a
while getopts h
v let verbose
then shift fi
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 echo For and will not be changed by echo further linking echo echo B echo The symbol is in the uninitialized data multiple common symbols may appear with the echo same name If the symbol is defined the common echo symbols are treated as undefined references For more echo details on common see the discussion of warn common echo in *Note Linker options
do i e
echo Invalid option
Definition: TrainMVA.sh:17
then echo find_global_symbol finds mangled or demangled symbols in libraries echo within LD_LIBRARY_PATH match any symbol that echo contains name echo Default
shift break
Definition: just_cmake.sh:60