changeset 118:551ff1de13d8

qpdf needs LD_LIB_PATH
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 16 Jun 2021 16:12:16 +0000
parents 63898fde9751
children bc958b776fb8
files bin/qpdf bin/qpdf_check
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/qpdf	Wed Jun 16 16:12:16 2021 +0000
@@ -0,0 +1,10 @@
+#!/usr/bin/bash
+G=/lustre/home/dc007/hst/gentoo
+if [ "${!#}" = "-" ]
+then
+ cat > /tmp/xxx.pdf
+ LD_LIBRARY_PATH=$G/usr/lib $G/usr/bin/qpdf "${@:1:${#}-1}" /tmp/xxx.pdf
+else
+ LD_LIBRARY_PATH=$G/usr/lib $G/usr/bin/qpdf "$@"
+fi
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/qpdf_check	Wed Jun 16 16:12:16 2021 +0000
@@ -0,0 +1,2 @@
+#!/usr/bin/bash
+qpdf --warning-exit-0 --suppress-recovery --check "$@" 2> >(egrep -v '^WARNING:' 1>&2) >/dev/null