texlive[41288] Build/source/extra/epstopdf: Makefile: fix return code

commits+karl at tug.org commits+karl at tug.org
Sun May 29 18:50:38 CEST 2016


Revision: 41288
          http://tug.org/svn/texlive?view=revision&revision=41288
Author:   karl
Date:     2016-05-29 18:50:38 +0200 (Sun, 29 May 2016)
Log Message:
-----------
Makefile: fix return code inversions.
epstopdf.1: mention gs options passed.
epstopdf.pl: output grayscale and pdfsettings in debug log.

Modified Paths:
--------------
    trunk/Build/source/extra/epstopdf/Makefile
    trunk/Build/source/extra/epstopdf/epstopdf.1
    trunk/Build/source/extra/epstopdf/epstopdf.pl

Modified: trunk/Build/source/extra/epstopdf/Makefile
===================================================================
--- trunk/Build/source/extra/epstopdf/Makefile	2016-05-28 18:09:45 UTC (rev 41287)
+++ trunk/Build/source/extra/epstopdf/Makefile	2016-05-29 16:50:38 UTC (rev 41288)
@@ -79,15 +79,15 @@
 	! $(e2p) test-simple.eps --outfile=/dev/full
 
 check-gscmd:
-	! $(e2p) --gscmd=true test-simple.eps
+	! $(e2p) --gscmd=false test-simple.eps
 	! $(e2p) --gscmd='foo bar' test-simple.eps # fails
 
 check-gsopt:
-	! $(e2p) --gscmd=echo --gsopt=foo --gsopt=bar test-simple.eps
+	! $(e2p) --gscmd=false --gsopt=foo --gsopt=bar test-simple.eps
 	! $(e2p) --restricted --gsopt=bar test-simple.eps # fails
 
 check-gsopts:
-	! $(e2p) --gscmd=echo --gsopts='foo bar' test-simple.eps
+	$(e2p) --gscmd=echo --gsopts='foo bar' test-simple.eps
 	! $(e2p) --restricted --gsopts=bar test-simple.eps # fails
 
 check-simple:

Modified: trunk/Build/source/extra/epstopdf/epstopdf.1
===================================================================
--- trunk/Build/source/extra/epstopdf/epstopdf.1	2016-05-28 18:09:45 UTC (rev 41287)
+++ trunk/Build/source/extra/epstopdf/epstopdf.1	2016-05-29 16:50:38 UTC (rev 41288)
@@ -65,17 +65,20 @@
 set AutoRotatePages (default: None); recognized \fIval\fP choices:
 None, All, PageByPage.  For EPS files, PageByPage is equivalent to All.
 .IP "\fB--\fP[\fBno\fP]\fBcompress\fP"
-use compression in the output (default: true).
+use compression in the output (default: true); if turned off, passes
+.IR -dUseFlateCompression=false .
 .IP "\fB--device\fP=\fIdev\fP"
 use -sDEVICE=\fIdev\fP (default: pdfwrite); not allowed in restricted mode.
 .IP "\fB--\fP[\fBno\fP]\fBembed\fP"
-embed fonts (default: true).
+embed fonts (default: true); passes
+.I -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true.
 .IP "\fB--\fP[\fBno\fP]\fBgray\fP"
-grayscale output (default: false).
+grayscale output (default: false); passes
+.I -sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray.
 .IP "\fB--pdfsettings\fP=\fIval\fP"
 use -dPDFSETTINGS=/\fIval\fP (default is `prepress' if \fB--embed\fP,
 else empty); recognized \fIval\fP choices: screen, ebook, printer,
-repress, default.
+prepress, default.
 .IP "\fB--\fP[\fBno\fP]\fBquiet\fP"
 use -q, a.k.a. -dQUIET (default: false).
 .IP "\fB--res\fP=\fIdpi, dpi\fPx\fIdpi\fP"

Modified: trunk/Build/source/extra/epstopdf/epstopdf.pl
===================================================================
--- trunk/Build/source/extra/epstopdf/epstopdf.pl	2016-05-28 18:09:45 UTC (rev 41287)
+++ trunk/Build/source/extra/epstopdf/epstopdf.pl	2016-05-29 16:50:38 UTC (rev 41288)
@@ -37,7 +37,7 @@
 my $ver = "2.24";
 
 # History
-#  2016/05/28 v2.24 (Karl Berry)
+#  2016/05/29 v2.24 (Karl Berry)
 #    * new option --gray; patch from William Bader,
 #      tex-k mail 9 Feb 2016 19:37:08.
 #    * disallow --device completely in restricted mode,
@@ -581,7 +581,7 @@
   $::opt_res = '';
 }
 push @GS, "-r$::opt_res" if $::opt_res;
-$resmsg= $::opt_res ? $::opt_res : "[use gs default]";
+$resmsg = $::opt_res ? $::opt_res : "[use gs default]";
 
 # \label{val_autorotate}
 if ($::opt_autorotate and
@@ -639,10 +639,12 @@
 ### option gs
 if ($::opt_gs) {
   debug "Ghostscript command:", $GS;
+  debug "PDFSettings:", $::opt_pdfsettings;
+  debug "Embedding:", ($::opt_embed) ? "on" : "off";
   debug "Compression:", ($::opt_compress) ? "on" : "off";
-  debug "Embedding:", ($::opt_embed) ? "on" : "off";
+  debug "Grayscale:", ($::opt_gray) ? "on" : "off";
+  debug "Resolution:", $resmsg;
   debug "Rotation:", $rotmsg;
-  debug "Resolution:", $resmsg;
 }
 
 ### emacs-page



More information about the tex-live-commits mailing list