ghostscript/ghostscript-scripts.patch
Tim Waugh 3da9d92cb8 - 8.15.3. No longer need gtk2, ps2epsi, badc, pagesize,
use-external-freetype, split-font-configuration or cjkv patches.
- Renumbered patches.
2006-11-16 17:35:44 +00:00

24 lines
634 B
Diff

--- espgs-8.15.3/lib/pv.sh.scripts 2006-05-03 00:04:46.000000000 +0100
+++ espgs-8.15.3/lib/pv.sh 2006-11-16 17:05:01.000000000 +0000
@@ -26,7 +26,7 @@
# the -D switch from the call of dvips below.
#
TEMPDIR=.
-PAGE=$1
+PAGE="$1"
shift
FILE="$1"
shift
@@ -38,8 +38,8 @@
else
tmpfile="$TEMPDIR/$FILE.$$.pv"
fi
-trap "rm -rf $tmpfile" 0 1 2 15
-#dvips -D$RESOLUTION -p $PAGE -n 1 $FILE $* -o $FILE.$$.pv
-dvips -p $PAGE -n 1 "$FILE" "$@" -o "$tmpfile"
+trap 'rm -rf "$tmpfile"' 0 1 2 15
+#dvips -R -D$RESOLUTION -p $PAGE -n 1 $FILE $* -o $FILE.$$.pv
+dvips -R -p "$PAGE" -n 1 "$FILE" "$@" -o "$tmpfile"
gs "$tmpfile"
exit 0