diff options
author | Norbert Preining <preining@logic.at> | 2017-04-26 08:14:28 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2017-04-26 08:14:28 +0000 |
commit | 42c279915eb59707dcb3fc0ce8c50c65dadbbe21 (patch) | |
tree | 7ab21299c42252a88bdaebe0695f8f893a6c623a /Master/texmf-dist | |
parent | f986fd958746473333cf7ecac040de4fe50e189d (diff) |
updmap: allow for all lowercase map type on command line, disallow maps with /
git-svn-id: svn://tug.org/texlive/trunk@44056 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/updmap.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/texlive/updmap.pl b/Master/texmf-dist/scripts/texlive/updmap.pl index 68c5f35913e..7b796c8a614 100755 --- a/Master/texmf-dist/scripts/texlive/updmap.pl +++ b/Master/texmf-dist/scripts/texlive/updmap.pl @@ -1476,6 +1476,11 @@ sub enable_disable_maps { if ($w =~ m/=/) { # this is --enable MapType=MapName my ($type, $map) = split ('=', $w); + # allow for all lowercase map types (map/mixedmap/kanjimap) + $type =~ s/map$/Map/; + $type = ucfirst($type); + # don't allow for map names containing / + die "$prg: map files cannot be relative/absolute paths: $map\n" if ($map =~ m{/}) enable_map($tc, $type, $map); } else { # this is --disable MapName |