[gs-cvs] rev 8105 - trunk/gs/lib

till at ghostscript.com till at ghostscript.com
Thu Jul 5 03:57:00 PDT 2007


Author: till
Date: 2007-07-05 03:57:00 -0700 (Thu, 05 Jul 2007)
New Revision: 8105

Modified:
   trunk/gs/lib/dvipdf
Log:
Let dvipdf support "-R" option, bug  689328.


Modified: trunk/gs/lib/dvipdf
===================================================================
--- trunk/gs/lib/dvipdf	2007-07-05 10:41:52 UTC (rev 8104)
+++ trunk/gs/lib/dvipdf	2007-07-05 10:57:00 UTC (rev 8105)
@@ -13,9 +13,11 @@
 
 
 OPTIONS=""
+DVIPSOPTIONS=""
 while true
 do
 	case "$1" in
+	-R*) DVIPSOPTIONS="$DVIPSOPTIONS $1";;
 	-*) OPTIONS="$OPTIONS $1" ;;
 	*)  break ;;
 	esac
@@ -42,4 +44,4 @@
 
 # We have to include the options twice because -I only takes effect if it
 # appears before other options.
-exec dvips -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
+exec dvips $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -



More information about the gs-cvs mailing list