Mercurial > hg > cc > cirrus_home
annotate bin/qpdf @ 146:c8e41c543c0b
works for 0--9
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Fri, 22 Oct 2021 12:36:15 +0000 |
parents | 660dc255542a |
children |
rev | line source |
---|---|
118 | 1 #!/usr/bin/bash |
2 G=/lustre/home/dc007/hst/gentoo | |
133
660dc255542a
parameterise the temp file and move it to /dev/shm
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
118
diff
changeset
|
3 TF=/dev/shm/hst/xxx.pdf |
118 | 4 if [ "${!#}" = "-" ] |
5 then | |
133
660dc255542a
parameterise the temp file and move it to /dev/shm
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
118
diff
changeset
|
6 cat > $TF |
660dc255542a
parameterise the temp file and move it to /dev/shm
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
118
diff
changeset
|
7 LD_LIBRARY_PATH=$G/usr/lib $G/usr/bin/qpdf "${@:1:${#}-1}" $TF |
118 | 8 else |
9 LD_LIBRARY_PATH=$G/usr/lib $G/usr/bin/qpdf "$@" | |
10 fi | |
11 |