Mercurial > hg > cc > cirrus_home
changeset 133:660dc255542a
parameterise the temp file and move it to /dev/shm
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Wed, 14 Jul 2021 16:49:35 +0000 |
parents | 128b18459f9e |
children | d3ef00af2064 |
files | bin/qpdf |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/qpdf Wed Jul 14 15:30:29 2021 +0000 +++ b/bin/qpdf Wed Jul 14 16:49:35 2021 +0000 @@ -1,9 +1,10 @@ #!/usr/bin/bash G=/lustre/home/dc007/hst/gentoo +TF=/dev/shm/hst/xxx.pdf if [ "${!#}" = "-" ] then - cat > /tmp/xxx.pdf - LD_LIBRARY_PATH=$G/usr/lib $G/usr/bin/qpdf "${@:1:${#}-1}" /tmp/xxx.pdf + 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