Mercurial > hg > cc > cirrus_home
annotate bin/qpdf @ 205:4ccd8ad84e82
correct log output
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Thu, 23 Apr 2026 10:52:06 +0100 |
| 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 |
