diff options
Diffstat (limited to 'Master/texmf-dist/scripts/perltex/perltex.pl')
-rwxr-xr-x | Master/texmf-dist/scripts/perltex/perltex.pl | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Master/texmf-dist/scripts/perltex/perltex.pl b/Master/texmf-dist/scripts/perltex/perltex.pl index 64309cc1926..1c17aa73101 100755 --- a/Master/texmf-dist/scripts/perltex/perltex.pl +++ b/Master/texmf-dist/scripts/perltex/perltex.pl @@ -15,7 +15,7 @@ # # This is a generated file. # -# Copyright (C) 2009 Scott Pakin <scott+pt@pakin.org> +# Copyright (C) 2010 Scott Pakin <scott+pt@pakin.org> # # This file may be distributed and/or modified under the conditions # of the LaTeX Project Public License, either version 1.3c of this @@ -39,7 +39,7 @@ use Pod::Usage; use File::Basename; use Fcntl; use POSIX; -use Cwd qw(abs_path); +use File::Spec; use IO::Handle; use warnings; use strict; @@ -105,13 +105,13 @@ $latexcmdline[$firstcmd] = '\plmac@doneflag', $doneflag, '\plmac@pipe', $pipe, $latexcmdline[$firstcmd]; -$toperl = abs_path $toperl; -$fromperl = abs_path $fromperl; -$toflag = abs_path $toflag; -$fromflag = abs_path $fromflag; -$doneflag = abs_path $doneflag; -$logfile = abs_path $logfile; -$pipe = abs_path $pipe; +$toperl = File::Spec->rel2abs($toperl); +$fromperl = File::Spec->rel2abs($fromperl); +$toflag = File::Spec->rel2abs($toflag); +$fromflag = File::Spec->rel2abs($fromflag); +$doneflag = File::Spec->rel2abs($doneflag); +$logfile = File::Spec->rel2abs($logfile); +$pipe = File::Spec->rel2abs($pipe); $SIG{"ALRM"} = sub { undef $latexpid; exit 0; @@ -175,6 +175,7 @@ while (1) { $entirefile = <TOPERL>; close TOPERL; } + $entirefile =~ s/\r//g; my ($optag, $macroname, @otherstuff) = map {chomp; $_} split "$separator\n", $entirefile; $macroname =~ s/^[^A-Za-z]+//; |