view bin/qpdf @ 202:491b6d11dd14

works now with somewhat redundant --array=a-b and runme.sh -m a b
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 20 Apr 2026 18:22:38 +0100
parents 660dc255542a
children
line wrap: on
line source

#!/usr/bin/bash
G=/lustre/home/dc007/hst/gentoo
TF=/dev/shm/hst/xxx.pdf
if [ "${!#}" = "-" ]
then
 cat > $TF
 LD_LIBRARY_PATH=$G/usr/lib $G/usr/bin/qpdf "${@:1:${#}-1}" $TF
else
 LD_LIBRARY_PATH=$G/usr/lib $G/usr/bin/qpdf "$@"
fi