ghostscript/ghostscript-scripts.patch

24 lines
634 B
Diff
Raw Normal View History

--- 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