summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2010-05-12 17:13:46 +0000
committerNorbert Preining <preining@logic.at>2010-05-12 17:13:46 +0000
commit6c2d3d4c8d16ce1ea5c0fa04088e09fe433497aa (patch)
treeb59a71cf61239653405431fa9afa9ea30075045f /Master
parent7a431533ca4d79f8150eaab8e4875b6ff897d00f (diff)
add support for execute action addLuaMap
git-svn-id: svn://tug.org/texlive/trunk@18212 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl14
-rw-r--r--Master/tlpkg/TeXLive/TLPSRC.pm5
-rw-r--r--Master/tlpkg/TeXLive/TLUtils.pm2
3 files changed, 21 insertions, 0 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index e4dca67dea4..85b53f8fdf2 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -551,6 +551,20 @@ sub handle_execute_actions
}
#
+ # addLuaMap handling
+ # if defined simply run the magic script
+ {
+ if (defined($::execute_actions{$type}{'luamaps'}{'run'})) {
+ # check for the existence, the PATH should be set up already
+ if (which("mkluatexfontdb-sys")) {
+ $errors += do_cmd_and_check("mkluatexfontdb-sys");
+ } else {
+ log("tlmgr addLuaMap handling: mkluatexfontdb-sys not found, not running it.\n");
+ }
+ }
+ }
+
+ #
# maps handling
# if enabled and disabled -> do nothing
# if only enabled -> enable it
diff --git a/Master/tlpkg/TeXLive/TLPSRC.pm b/Master/tlpkg/TeXLive/TLPSRC.pm
index d5492e0f00c..b5f044402b0 100644
--- a/Master/tlpkg/TeXLive/TLPSRC.pm
+++ b/Master/tlpkg/TeXLive/TLPSRC.pm
@@ -782,6 +782,11 @@ enables the font map file I<font>C<.map> in the C<updmap.cfg> file.
enables the font map file I<font>C<.map> for Mixed mode in the
C<updmap.cfg> file.
+=item C<execute addLuaMap>
+
+triggers a call to mkluatexfontdb-sys (if available) which updates
+the font cache for luatex.
+
=item C<execute AddHyphen name=I<texlang> file=I<file> [I<var>...]>
activates the hyphenation pattern with name I<texlang> and load the file
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm
index ccba4cc9bf3..b416a008242 100644
--- a/Master/tlpkg/TeXLive/TLUtils.pm
+++ b/Master/tlpkg/TeXLive/TLUtils.pm
@@ -1738,6 +1738,8 @@ sub announce_execute_actions {
foreach my $e ($tlp->executes) {
if ($e =~ m/^add((Mixed)?Map)\s+([^\s]+)\s*$/) {
$::execute_actions{$type}{'maps'}{$3} = "$1";
+ } elsif ($e =~ m/^addLuaMap\s*$/) {
+ $::execute_actions{$type}{'luamaps'}{'run'} = 1;
} elsif ($e =~ m/^AddFormat\s+(.*)\s*$/) {
my %r = TeXLive::TLUtils::parse_AddFormat_line("$1");
if (defined($r{"error"})) {