summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-28 15:49:00 +0000
committerKarl Berry <karl@freefriends.org>2009-09-28 15:49:00 +0000
commit25b6864372c252f4719101af0299bf5c00a41d26 (patch)
tree9f305612ef4af26ff0044d87e9931b5b6cdf3357 /Build
parent4b7850aa4ff65b201a97ee1934608c2da8b1cefe (diff)
epstopdf 20090719
git-svn-id: svn://tug.org/texlive/trunk@15526 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rwxr-xr-xBuild/source/utils/epstopdf/epstopdf.pl21
1 files changed, 14 insertions, 7 deletions
diff --git a/Build/source/utils/epstopdf/epstopdf.pl b/Build/source/utils/epstopdf/epstopdf.pl
index be4875fe485..862743c8118 100755
--- a/Build/source/utils/epstopdf/epstopdf.pl
+++ b/Build/source/utils/epstopdf/epstopdf.pl
@@ -79,24 +79,31 @@ use strict;
# * Simplified the (atend) support
# 2007/05/18 v.2.9.7gw (Gerben Wierda)
# * Merged both supplied 2.9.6 versions
-# 2007/07/18 v.2.9.8gw
-# 2008/08/26 v.2.9.9gw
+# 2007/07/18 v2.9.8gw
+# 2008/08/26 v2.9.9gw
# * Switch to embed fonts (default=yes) (J.P. Chretien)
# * turned no AutoRotatePages into an option (D. Kreil) (default = None)
# * Added resolution switch (D. Kreil)
# * Added BSD-style license
+# 2009/05/09 v2.9.10gw
+# * Changed cygwin name for ghostscript to gs
+# 2009/07/17 v2.9.11gw
+# * Added -dSAFER to default gs options
+# TL2009 wants to use a restricted variant of -shell-escape,
+# allowing epstopdf to run. However without -dSAFER Ghostscript
+# allows writing to files (other than given in -sOutputFile)
+# and running commands (through Ghostscript pipe's language feature).
### program identification
my $program = "epstopdf";
-my $filedate="2008/08/26";
-my $fileversion="2.9.9gw";
-my $copyright = "Copyright 1998-2001 by Sebastian Rahtz et al., 2002-2008 by Gerben Wierda et al. Free software under a BSD-style license.";
+my $filedate="2009/07/19";
+my $fileversion="2.9.11gw";
+my $copyright = "Copyright 1998-2001 by Sebastian Rahtz et al., 2002-2009 by Gerben Wierda et al. Free software under a BSD-style license.";
my $title = "\U$program\E $fileversion, $filedate - $copyright\n";
### ghostscript command name
my $GS = "gs";
$GS = "gswin32c" if $^O eq 'MSWin32';
-$GS = "gswin32c" if $^O =~ /cygwin/;
### options
$::opt_help=0;
@@ -190,7 +197,7 @@ else {
}
### option compress & embed
-my $GSOPTS = "";
+my $GSOPTS = "-dSAFER ";
$GSOPTS .= " -dPDFSETTINGS=/prepress -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true " if $::opt_embed;
$GSOPTS .= "-dUseFlateCompression=false " unless $::opt_compress;
$GSOPTS .= "-r$::opt_res " if $::opt_res;