diff options
author | Karl Berry <karl@freefriends.org> | 2013-09-20 18:38:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-09-20 18:38:04 +0000 |
commit | d7cef2e3b00fb109d35da34a7ae12974e1b1860d (patch) | |
tree | 32cfb7c53be5c5e2ca4c86a3a36959cc585a1526 | |
parent | 456523753386ac4bb3fa1b32078d6c8949f3fd9d (diff) |
give gs command when piped input fails
git-svn-id: svn://tug.org/texlive/trunk@31708 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/extra/epstopdf/Makefile | 3 | ||||
-rwxr-xr-x | Build/source/extra/epstopdf/epstopdf.pl | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Build/source/extra/epstopdf/Makefile b/Build/source/extra/epstopdf/Makefile index 48630a6e575..be1992d9dce 100644 --- a/Build/source/extra/epstopdf/Makefile +++ b/Build/source/extra/epstopdf/Makefile @@ -64,10 +64,11 @@ check-write-error: check-gscmd: -$(e2p) --gscmd=true test-simple.eps + -$(e2p) --gscmd='foo bar' test-simple.eps # fails check-gsopt: -$(e2p) --gscmd=echo --gsopt=foo --gsopt=bar test-simple.eps - -$(e2p) --restricted --gsopt=bar test-simple.eps + -$(e2p) --restricted --gsopt=bar test-simple.eps # fails check-simple: $(MAKE) file=test-simple check1 diff --git a/Build/source/extra/epstopdf/epstopdf.pl b/Build/source/extra/epstopdf/epstopdf.pl index 2af1ceb1630..79ed4e75b59 100755 --- a/Build/source/extra/epstopdf/epstopdf.pl +++ b/Build/source/extra/epstopdf/epstopdf.pl @@ -430,7 +430,8 @@ if ($::opt_gs) { if (! $on_windows_or_cygwin) { # list piped open works push @GS, qw(- -c quit); debug "Ghostscript pipe:", join(' ', @GS); - open($OUT, '|-', @GS) or error "Cannot open Ghostscript for piped input"; + open($OUT, '|-', @GS) + || error ("Cannot open Ghostscript for piped input: $GS"); } else { # use a temporary file on Windows/Cygwin. ($OUT, $tmp_filename) = tempfile(UNLINK => 1); debug "Using temporary file '$tmp_filename'"; |