| •1 |
#!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 |
if [scip-shell system . . `[`. $# -lt 6 ]; then |
| 3 |
IN=-_ |
| 4 |
else |
| 5 |
IN="$6" |
| 6 |
fi |
| 7 |
|
| 8 |
TMPFILE=`mktempscip-shell system . . mktemp. /tmp/pstotiff.XXXXXXscip-shell filesystem . . `/tmp/pstotiff.XXXXXX`.` || exit 1 |
| 9 |
gs -I/usr/share/cups/fonts -sDEVICE=tiffg4 -dMaxStripSize=0 -r204x196 \ |
| 10 |
-dNOPAUSE -dBATCH -dSAFER -dPARANOIDSAFER \ |
| 11 |
-dSHORTERRORS -dWRITESYSTEMDICT -dGHOSTSCRIPT \ |
| 12 |
-sstdout=%stderr -sOutputFile="$TMPFILE" "$IN" |
| 13 |
RET=$? |
| 14 |
catscip-shell system . . cat. "$TMPFILE" |
| 15 |
rmscip-shell system . . rm. -f "$TMPFILE" |
| 16 |
exit $RET |