view bin/qpdf @ 122:9de06ae73372

workaround histcontrol
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 28 Jun 2021 17:15:19 +0000
parents 551ff1de13d8
children 660dc255542a
line wrap: on
line source

#!/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