summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
authorReinhard Kotucha <reinhard.kotucha@web.de>2009-08-24 14:39:00 +0000
committerReinhard Kotucha <reinhard.kotucha@web.de>2009-08-24 14:39:00 +0000
commite03bf95106e8abe040e7c5e3c5032715868cd20f (patch)
treeb10d248c909c890c81b15821447c6ad2e75a1ee4 /Master/texmf
parent7fdcfd3a86421bad13037ef20bd39c5e233bdd2b (diff)
updmap.pl: replaced dir/ls by Perl code
git-svn-id: svn://tug.org/texlive/trunk@14841 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rw-r--r--Master/texmf/scripts/tetex/updmap.pl13
1 files changed, 4 insertions, 9 deletions
diff --git a/Master/texmf/scripts/tetex/updmap.pl b/Master/texmf/scripts/tetex/updmap.pl
index fd787415b21..f75461ad543 100644
--- a/Master/texmf/scripts/tetex/updmap.pl
+++ b/Master/texmf/scripts/tetex/updmap.pl
@@ -1102,17 +1102,12 @@ updmap is creating new map files using the following configuration:\
"$dvipdfmoutputdir/dvipdfm_dl14.map",
"$dvipdfmoutputdir/dvipdfm_ndl14.map",
"$dvipsoutputdir/ps2pk.map") {
- if ($^O=~/^MSWin(32|64)$/) {
- $f =~ s@/@\\@g; $f = "\"$f\"" if ($f =~ m/\s/);
- # rk. Suppress header and footer from dir output.
- @lines = `dir /b /s $f`;
+ if (-e $f) {
+ my @stat=stat($f);
+ printf "%7d %s %s\n", $stat[7], scalar (localtime $stat[9]), $f;
} else {
- @lines = `ls -l $f`;
+ print STDERR "Warning: File $f doesn't exist.\n";
}
- chomp @lines;
- my $rx = "(^ |dvipdfm.map|dvipdfm_dl14.map|dvipdfm_ndl14.map|pdftex.map|pdftex_dl14.map|pdftex_ndl14.map|ps2pk.map|psfonts.map|psfonts_pk.map|psfonts_t1.map|builtin35.map|download35.map)";
- @lines = grep /$rx/, @lines;
- map { print "$_\n"; } @lines;
}
}
}