Make it possible to get a quiet perl.
authorRobin H. Johnson <rjohnson@sitka.bclibraries.ca>
Sat, 2 Aug 2014 17:02:18 +0000 (10:02 -0700)
committerRobin H. Johnson <rjohnson@sitka.bclibraries.ca>
Sat, 2 Aug 2014 17:02:20 +0000 (10:02 -0700)
Signed-off-by: Robin H. Johnson <rjohnson@sitka.bclibraries.ca>
marc_export_custom/sitka-full-export-parallel-outlook-wrapper.sh
marc_export_custom/sitka-full-export-parallel.sh

index b484ba5..63b32d9 100755 (executable)
@@ -13,6 +13,7 @@ fi
 cd $OUTDIR
 $DIR/fetch-shortcodes.sh
 cd $DIR
+export PERLOPT=-X
 time ./sitka-full-export-parallel.sh
 rc=$?
 cd $OUTDIR
index 16b0737..2b8d40a 100755 (executable)
@@ -13,7 +13,8 @@ POSTSEC_QUERY="select distinct record FROM asset.call_number where owning_lib in
 NONEXPORTED_QUERY="select distinct acn.record FROM asset.call_number acn join biblio.record_entry bre on (acn.record = bre.id) where bre.deleted or not bre.active or acn.deleted"
 MARC_PARAMS="--config /srv/openils/conf/opensrf_core.xml --items --location SITKA --collapse_to_depth 2 --timeout 300 --force901 --encoding UTF-8 --onlyholdings --quiet"
 MARC_EXPORT_BIN="${DIR}/marc_export_custom"
-MARC_EXPORT="${MARC_EXPORT_BIN} ${MARC_PARAMS}"
+# this lets us inject perl opts
+MARC_EXPORT="perl ${PERLOPT} -- ${MARC_EXPORT_BIN} ${MARC_PARAMS}"
 
 [ -z "${T}" ] && T=$(date -u +%Y%m%dT%H%M%SZ)
 [ -z "${OUTDIR}" ] && OUTDIR=$(mktemp --tmpdir -d outlook_export.XXXXXXX)