diff options
author | Karl Berry <karl@freefriends.org> | 2011-06-17 23:45:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-06-17 23:45:54 +0000 |
commit | 0177c4eac3a7297d360b1625f0776b1d3e908e7a (patch) | |
tree | 5c98039f78b7f6c187c080a466e010e021de469c /Master/texmf/scripts | |
parent | 5667d0c2a47a85fc3fb0ad53e2d4e7af13964e4e (diff) |
sync
git-svn-id: svn://tug.org/texlive/trunk@23035 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts')
-rwxr-xr-x | Master/texmf/scripts/tetex/updmap.pl | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Master/texmf/scripts/tetex/updmap.pl b/Master/texmf/scripts/tetex/updmap.pl index ae22fb2e83a..2f988ca926a 100755 --- a/Master/texmf/scripts/tetex/updmap.pl +++ b/Master/texmf/scripts/tetex/updmap.pl @@ -12,7 +12,7 @@ BEGIN { unshift (@INC, "$TEXMFROOT/tlpkg"); } -my $version = '$Id: updmap.pl 23018 2011-06-16 20:35:36Z karl $'; +my $version = '$Id: updmap.pl 23034 2011-06-17 23:44:39Z karl $'; use strict; use TeXLive::TLUtils qw(mkdirhier mktexupd win32); @@ -464,24 +464,22 @@ sub locateWeb2c { ############################################################################### # locateMap (file ...) -# apply kpsewhich with format 'dvips config' +# apply kpsewhich with format 'map' # sub locateMap { my @maps = @_; - my @files; - return @maps if ($#maps < 0); - @files = `kpsewhich --format=map @maps`; + my @files = `kpsewhich --format=map @maps`; chomp @files; foreach my $map (@maps) { - push @missing, $map if (! grep /\/$map$/, @files); + push @missing, $map if (! grep /\/$map(\.map)?$/, @files); } + if (wantarray) { return @files; - } - else { + } else { return $files[0]; } } |