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

till at ghostscript.com till at ghostscript.com
Sat Jan 10 14:11:19 PST 2009


Author: till
Date: 2009-01-10 14:11:18 -0800 (Sat, 10 Jan 2009)
New Revision: 9344

Modified:
   trunk/gs/lib/dvipdf
   trunk/gs/lib/eps2eps
   trunk/gs/lib/ps2pdfwr
   trunk/gs/lib/ps2ps
   trunk/gs/lib/ps2ps2
Log:
Add "-sstdout=%stderr" to scripts that call gs so that they don't corrupt their own output when outputing to stdout (Thanks to Dan Sheridan (djs at adelard dot com), Ubuntu bug #314439).



Modified: trunk/gs/lib/dvipdf
===================================================================
--- trunk/gs/lib/dvipdf	2009-01-10 06:01:49 UTC (rev 9343)
+++ trunk/gs/lib/dvipdf	2009-01-10 22:11:18 UTC (rev 9344)
@@ -44,4 +44,4 @@
 
 # We have to include the options twice because -I only takes effect if it
 # appears before other options.
-exec dvips -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
+exec dvips -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -

Modified: trunk/gs/lib/eps2eps
===================================================================
--- trunk/gs/lib/eps2eps	2009-01-10 06:01:49 UTC (rev 9343)
+++ trunk/gs/lib/eps2eps	2009-01-10 22:11:18 UTC (rev 9344)
@@ -26,4 +26,4 @@
 	exit 1
 fi
 
-exec "$GS_EXECUTABLE" -q -sDEVICE=epswrite "-sOutputFile=$2" -dNOPAUSE -dBATCH -dSAFER $OPTIONS "$1"
+exec "$GS_EXECUTABLE" -q -sDEVICE=epswrite -sstdout=%stderr "-sOutputFile=$2" -dNOPAUSE -dBATCH -dSAFER $OPTIONS "$1"

Modified: trunk/gs/lib/ps2pdfwr
===================================================================
--- trunk/gs/lib/ps2pdfwr	2009-01-10 06:01:49 UTC (rev 9343)
+++ trunk/gs/lib/ps2pdfwr	2009-01-10 22:11:18 UTC (rev 9344)
@@ -42,4 +42,4 @@
 
 # We have to include the options twice because -I only takes effect if it
 # appears before other options.
-exec "$GS_EXECUTABLE" $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite "-sOutputFile=$outfile" $OPTIONS -c .setpdfwrite -f "$infile"
+exec "$GS_EXECUTABLE" $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS -c .setpdfwrite -f "$infile"

Modified: trunk/gs/lib/ps2ps
===================================================================
--- trunk/gs/lib/ps2ps	2009-01-10 06:01:49 UTC (rev 9343)
+++ trunk/gs/lib/ps2ps	2009-01-10 22:11:18 UTC (rev 9344)
@@ -27,4 +27,4 @@
 	exit 1
 fi
 
-exec "$GS_EXECUTABLE" -q -sDEVICE=pswrite "-sOutputFile=$2" -dNOPAUSE -dBATCH $OPTIONS "$1"
+exec "$GS_EXECUTABLE" -q -sDEVICE=pswrite -sstdout=%stderr "-sOutputFile=$2" -dNOPAUSE -dBATCH $OPTIONS "$1"

Modified: trunk/gs/lib/ps2ps2
===================================================================
--- trunk/gs/lib/ps2ps2	2009-01-10 06:01:49 UTC (rev 9343)
+++ trunk/gs/lib/ps2ps2	2009-01-10 22:11:18 UTC (rev 9344)
@@ -24,4 +24,4 @@
 	exit 1
 fi
 
-exec $GS_EXECUTABLE -q -sDEVICE=ps2write "-sOutputFile=$2" -dNOPAUSE -dBATCH $OPTIONS "$1"
+exec $GS_EXECUTABLE -q -sDEVICE=ps2write -sstdout=%stderr "-sOutputFile=$2" -dNOPAUSE -dBATCH $OPTIONS "$1"



More information about the gs-cvs mailing list