texlive[44056] Master/texmf-dist/scripts/texlive/updmap.pl: updmap:
commits+preining at tug.org
commits+preining at tug.org
Wed Apr 26 10:14:28 CEST 2017
Revision: 44056
http://tug.org/svn/texlive?view=revision&revision=44056
Author: preining
Date: 2017-04-26 10:14:28 +0200 (Wed, 26 Apr 2017)
Log Message:
-----------
updmap: allow for all lowercase map type on command line, disallow maps with /
Modified Paths:
--------------
trunk/Master/texmf-dist/scripts/texlive/updmap.pl
Modified: trunk/Master/texmf-dist/scripts/texlive/updmap.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/texlive/updmap.pl 2017-04-26 08:14:20 UTC (rev 44055)
+++ trunk/Master/texmf-dist/scripts/texlive/updmap.pl 2017-04-26 08:14:28 UTC (rev 44056)
@@ -1476,6 +1476,11 @@
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
More information about the tex-live-commits
mailing list