summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-02-27 21:44:33 +0000
committerKarl Berry <karl@freefriends.org>2023-02-27 21:44:33 +0000
commit7669f918608c9f27bcce138163da6bf29a033a6a (patch)
tree6e61fdf9c863dceecac93da6ece69b4b10cdc93d /Master/texmf-dist
parent8f843f474a0524b5637bf0aab7617bd0210f67e7 (diff)
run mtxrun --generate and context --luatex --generate as post-install actions, only if the luametatex binary is operational
git-svn-id: svn://tug.org/texlive/trunk@66236 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/scripts/texlive/NEWS4
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl13
2 files changed, 13 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/texlive/NEWS b/Master/texmf-dist/scripts/texlive/NEWS
index daa0f9fc0ca..39ac83e927a 100644
--- a/Master/texmf-dist/scripts/texlive/NEWS
+++ b/Master/texmf-dist/scripts/texlive/NEWS
@@ -1,6 +1,10 @@
(This file public domain. Originally written by Norbert Preining and
Karl Berry, 2010.)
+<p><b>tlmgr 66236 (released 28feb23):</b>
+<li>run both mtxrun --generate and context --luatex --generate
+as post-update actions, if the luametatex binary is operational.
+
<p><b>tlmgr 66218 (released 27feb23):</b>
<li>rename "path --w32mode" option to --windowsmode; similar throughout.
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index 6ebbd307583..bf7f498b6da 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -892,11 +892,16 @@ sub handle_execute_actions {
if ($::files_changed) {
$errors += do_cmd_and_check("mktexlsr");
+ # see comments in install-tl about lmtx.
+ my $lmtx = "$bindir/luametatex";
if (defined($localtlpdb->get_package('context'))
- && (-x "$bindir/luametatex" || -x "$bindir/luametatex.exe")) {
-; # x86_64-linux binary too new
-# $errors += do_cmd_and_check("mtxrun --generate");
-# $errors += do_cmd_and_check("context --luatex --generate");
+ && (-x "$lmtx" || -x "$lmtx.exe")
+ && TeXLive::TLUtils::system_ok("$lmtx --version")
+ ) {
+ $errors += do_cmd_and_check("mtxrun --generate");
+ $errors += do_cmd_and_check("context --luatex --generate");
+ } else {
+ debug("skipped ConTeXt cache regeneration\n");
}
$::files_changed = 0;
}