annotate bin/qpdf @ 127:3bc1d24363a1

bits and pieces
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 29 Jun 2021 08:00:40 +0000
parents 551ff1de13d8
children 660dc255542a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
118
551ff1de13d8 qpdf needs LD_LIB_PATH
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/usr/bin/bash
551ff1de13d8 qpdf needs LD_LIB_PATH
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 G=/lustre/home/dc007/hst/gentoo
551ff1de13d8 qpdf needs LD_LIB_PATH
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 if [ "${!#}" = "-" ]
551ff1de13d8 qpdf needs LD_LIB_PATH
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 then
551ff1de13d8 qpdf needs LD_LIB_PATH
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 cat > /tmp/xxx.pdf
551ff1de13d8 qpdf needs LD_LIB_PATH
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 LD_LIBRARY_PATH=$G/usr/lib $G/usr/bin/qpdf "${@:1:${#}-1}" /tmp/xxx.pdf
551ff1de13d8 qpdf needs LD_LIB_PATH
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7 else
551ff1de13d8 qpdf needs LD_LIB_PATH
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
8 LD_LIBRARY_PATH=$G/usr/lib $G/usr/bin/qpdf "$@"
551ff1de13d8 qpdf needs LD_LIB_PATH
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
9 fi
551ff1de13d8 qpdf needs LD_LIB_PATH
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
10