summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2009-10-07 18:29:53 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2009-10-07 18:29:53 +0000
commit1e4efbc8b11d68001633822d84178a75435dc4b9 (patch)
treefce6f1f033a63584647d8ff21adc3517652fc32c /Master/texmf-dist/scripts
parent4f17176bf91e4bfc57b5e393a4deda18580bad63 (diff)
pdfcrop 2009/10/06 v1.20
git-svn-id: svn://tug.org/texlive/trunk@15677 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts')
-rwxr-xr-xMaster/texmf-dist/scripts/pdfcrop/pdfcrop.pl12
1 files changed, 10 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/pdfcrop/pdfcrop.pl b/Master/texmf-dist/scripts/pdfcrop/pdfcrop.pl
index 98bedd70711..7c2bd4355dd 100755
--- a/Master/texmf-dist/scripts/pdfcrop/pdfcrop.pl
+++ b/Master/texmf-dist/scripts/pdfcrop/pdfcrop.pl
@@ -22,8 +22,8 @@ $^W=1; # turn warning on
#
my $file = "pdfcrop.pl";
my $program = uc($&) if $file =~ /^\w+/;
-my $version = "1.19";
-my $date = "2009/09/24";
+my $version = "1.20";
+my $date = "2009/10/06";
my $author = "Heiko Oberdiek";
my $copyright = "Copyright (c) 2002-2009 by $author.";
#
@@ -63,6 +63,7 @@ my $copyright = "Copyright (c) 2002-2009 by $author.";
# * Option --version added.
# 2009/09/24 v1.19: * Ghostscript detection rewritten.
# * Cygwin: `gs' is preferred to `gswin32c'.
+# 2009/10/06 v1.20: * File name sanitizing in .tex file.
### program identification
my $title = "$program $version, $date - $copyright\n";
@@ -448,6 +449,13 @@ push @unlink_files, $tmpfile;
open(TMP, ">$tmpfile") or
die "$Error Cannot write tmp file `$tmpfile'!\n";
print TMP "\\def\\pdffile{$inputfilesafe}\n";
+print TMP <<'END_TMP';
+\def\stripprefix#1>{}
+\def\onelevelsanitize#1{%
+ \edef#1{\expandafter\stripprefix\meaning#1}%
+}
+\onelevelsanitize\pdffile
+END_TMP
if ($::opt_tex eq 'pdftex') {
print TMP <<'END_TMP_HEAD';
\csname pdfmapfile\endcsname{}