diff options
author | Karl Berry <karl@freefriends.org> | 2019-12-12 23:16:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-12-12 23:16:59 +0000 |
commit | 91253010db384c5c2e2208fdd5f653d47db4ab26 (patch) | |
tree | dfee8c6949135f65448b752bc009192f2baffb42 | |
parent | 1771de170877c0be2651f265f97bd98bc2ee04f6 (diff) |
back to r22719 so we have suffixed output files
git-svn-id: svn://tug.org/texlive/trunk@53110 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/texmf-dist/scripts/context/perl/mptopdf.pl | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/Master/texmf-dist/scripts/context/perl/mptopdf.pl b/Master/texmf-dist/scripts/context/perl/mptopdf.pl index 165d4d2179f..42db9001ec4 100755 --- a/Master/texmf-dist/scripts/context/perl/mptopdf.pl +++ b/Master/texmf-dist/scripts/context/perl/mptopdf.pl @@ -118,14 +118,9 @@ if (($pattern eq '')||($Help)) { @files = glob "$pattern" ; } -# this patch was send via debian but is not tested by me - foreach my $file (@files) { $_ = $file ; - # if (s/\.(\d+|mps)$// && -e $file) { - if (s/\.(\d+|mps|ps)$// && -e $file) { - my $suffix = $1 ; - my $pdf = basename($_).".pdf" ; + if (s/\.(\d+|mps)$// && -e $file) { if ($miktex) { $command = "pdftex -undump=mptopdf" ; } else { @@ -141,22 +136,15 @@ foreach my $file (@files) { print "\n$program : error while processing tex file\n" ; exit 1 ; } - # my $pdfsrc = basename($_).".pdf"; - # rename ($pdfsrc, "$_-$1.pdf") ; - # if (-e $pdfsrc) { - # CopyFile ($pdfsrc, "$_-$1.pdf") ; - if ($suffix =~ m/\.\d+$/) { - rename ($pdf, "$_-$suffix.pdf") ; - if (-e $pdf) { - CopyFile ($pdf, "$_-$suffix.pdf") ; - } - $pdf = "$_-$suffix.pdf" ; + my $pdfsrc = basename($_).".pdf"; + rename ($pdfsrc, "$_-$1.pdf") ; + if (-e $pdfsrc) { + CopyFile ($pdfsrc, "$_-$1.pdf") ; } if ($done) { $report .= " +" ; } - # $report .= " $_-$1.pdf" ; - $report .= " $pdf" ; + $report .= " $_-$1.pdf" ; ++$done ; } } |