3 #Take in all of the arguments
7 show_help # Display
a usage synopsis.
10 --mdappfamily) # Takes an
option argument; ensure it has been
specified.
15 echo
"$0 ERROR: mdappfamily requires a non-empty option argument."
20 --mdappversion) # Takes an
option argument; ensure it has been
specified.
25 echo
"$0 ERROR: mdappversion requires a non-empty option argument."
30 --inputfclname) # Takes an
option argument; ensure it has been
specified.
35 echo
"$0 ERROR: inputfclname requires a non-empty option argument."
45 echo
"$0 ERROR: mdfiletype requires a non-empty option argument."
54 echo
"$0 ERROR: mdruntype requires a non-empty option argument."
58 --mdgroupname) # Takes an
option argument; ensure it has been
specified.
63 echo
"$0 ERROR: mdgroupname requires a non-empty option argument."
72 echo
"$0 ERROR: mdfclname requires a non-empty option argument."
76 --mdprojectname) # Takes an
option argument; ensure it has been
specified.
81 echo
"$0 ERROR: mdprojectname requires a non-empty option argument."
85 --mdprojectstage) # Takes an
option argument; ensure it has been
specified.
90 echo
"$0 ERROR: mdprojectstage requires a non-empty option argument."
94 --mdprojectversion) # Takes an
option argument; ensure it has been
specified.
99 echo
"$0 ERROR: mdprojectversion requires a non-empty option argument."
103 --mdprojectsoftware) # Takes an
option argument; ensure it has been
specified.
108 echo
"$0 ERROR: mdprojectsoftware requires a non-empty option argument."
112 --mdproductionname) # Takes an
option argument; ensure it has been
specified.
117 echo
"$0 ERROR: mdproductionname requires a non-empty option argument."
121 --mdproductiontype) # Takes an
option argument; ensure it has been
specified.
126 echo
"$0 ERROR: mdproductiontype requires a non-empty option argument."
130 --tfilemdjsonname) # Takes an
option argument; ensure it has been
specified.
135 echo
"$0 ERROR: tfilemdjsonname requires a non-empty option argument."
144 echo
"$0 ERROR: cafname requires a non-empty option argument."
150 # file=${1#*=} # Delete everything up to "=" and assign the remainder.
152 # --file=) # Handle the case of an empty --file=
153 # echo 'ERROR: "--file" requires a non-empty option argument.'
163 printf
"$0 WARN: Unknown option (ignored): %s\n" "$1" >&2
171 if [ -
z "$MDAPPFAMILY" ]; then
172 echo
"$0 ERROR: mdappfamily is mandatory"
176 if [ -
z "$MDAPPVERSION" ]; then
177 echo
"$0 ERROR: mdappversion is mandatory"
181 if [ -
z "$INPUTFCLNAME" ]; then
182 echo
"$0 ERROR: inputfclname is mandatory"
186 if [ -
z "$MDFILETYPE" ]; then
187 echo
"$0 ERROR: mdfiletype is mandatory"
191 if [ -
z "$MDRUNTYPE" ]; then
192 echo
"$0 ERROR: mdruntype is mandatory"
196 if [ -
z "$MDGROUPNAME" ]; then
197 echo
"$0 ERROR: mdgroupname is mandatory"
201 if [ -
z "$MDFCLNAME" ]; then
202 echo
"$0 ERROR: mdfclname is mandatory"
206 if [ -
z "$MDPROJECTNAME" ]; then
207 echo
"$0 ERROR: mdprojectname is mandatory"
211 if [ -
z "$MDPROJECTSTAGE" ]; then
212 echo
"$0 ERROR: mdprojectstage is mandatory"
216 if [ -
z "$MDPROJECTVERSION" ]; then
217 echo
"$0 ERROR: mdprojectverson is mandatory"
221 if [ -
z "$MDPROJECTSOFTWARE" ]; then
222 echo
"$0 ERROR: mdprojectsoftware is mandatory"
226 if [ -
z "$MDPRODUCTIONNAME" ]; then
227 echo
"$0 ERROR: mdproductionname is mandatory"
231 if [ -
z "$MDPRODUCTIONTYPE" ]; then
232 echo
"$0 ERROR: mdproductiontype is mandatory"
237 echo -
e "\n#Metadata injection by $0" >> $INPUTFCLNAME
238 echo
"services.FileCatalogMetadata.applicationFamily: \"$MDAPPFAMILY\"" >> $INPUTFCLNAME
239 echo
"services.FileCatalogMetadata.applicationVersion: \"$MDAPPVERSION\"" >> $INPUTFCLNAME
240 echo
"services.FileCatalogMetadata.fileType: \"$MDFILETYPE\"" >> $INPUTFCLNAME
241 echo
"services.FileCatalogMetadata.runType: \"$MDRUNTYPE\"" >> $INPUTFCLNAME
242 echo
"services.FileCatalogMetadata.group: \"$MDGROUPNAME\"" >> $INPUTFCLNAME
243 echo
"services.FileCatalogMetadataSBN.FCLName: \"$MDFCLNAME\"" >> $INPUTFCLNAME
244 echo
"services.FileCatalogMetadataSBN.ProjectName: \"$MDPROJECTNAME\"" >> $INPUTFCLNAME
245 echo
"services.FileCatalogMetadataSBN.ProjectStage: \"$MDPROJECTSTAGE\"" >> $INPUTFCLNAME
246 echo
"services.FileCatalogMetadataSBN.ProjectVersion: \"$MDPROJECTVERSION\"" >> $INPUTFCLNAME
247 echo
"services.FileCatalogMetadataSBN.ProjectSoftware: \"$MDPROJECTSOFTWARE\"" >> $INPUTFCLNAME
248 echo
"services.FileCatalogMetadataSBN.ProductionName: \"$MDPRODUCTIONNAME\"" >> $INPUTFCLNAME
249 echo
"services.FileCatalogMetadataSBN.ProductionType: \"$MDPRODUCTIONTYPE\"" >> $INPUTFCLNAME
251 if [
"$TFILEMDJSONNAME" ]; then
252 echo
"services.MetadataSBN: @local::sbnd_file_catalog_sbn" >> $INPUTFCLNAME
253 echo
"services.MetadataSBN.JSONFileName: \"$TFILEMDJSONNAME\"" >> $INPUTFCLNAME
255 # If we want to make caf files
in production, lets set
the output name here also
258 echo
"physics.producers.mycafmaker.CAFFilename: \"$CAFNAME\"" >> $INPUTFCLNAME
259 echo
"services.MetadataSBN.dataTier: \"caf\"" >> $INPUTFCLNAME
260 echo
"services.MetadataSBN.fileFormat: \"caf\"" >> $INPUTFCLNAME
process_name opflash particleana ie ie ie z
then echo Sam station was not specified(use option--sam_station)." exit 1 fi if [ x$SAM_GROUP
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
BEGIN_PROLOG sequence::SlidingWindowTriggerPatternsOppositeWindows END_PROLOG simSlidingORM6O6 effSlidingORW output
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
basic_json<> json
default JSON class
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