diff options
author | Karl Berry <karl@freefriends.org> | 2024-03-30 15:39:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-03-30 15:39:30 +0000 |
commit | 2f4e2f4e61e34ab99691754741300f42368a16c5 (patch) | |
tree | 2b4d7a4b5c96f5cdb0853696b192c43e19b6b8c4 /Build | |
parent | 4a0fac46e69e8bbb0f12660f18bf051297eefaf9 (diff) |
doc,sync,debug
git-svn-id: svn://tug.org/texlive/trunk@70814 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/tests/TeXLive/TLUtils.pm | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Build/source/texk/tests/TeXLive/TLUtils.pm b/Build/source/texk/tests/TeXLive/TLUtils.pm index c49e701b94a..24ab8c2f3c7 100644 --- a/Build/source/texk/tests/TeXLive/TLUtils.pm +++ b/Build/source/texk/tests/TeXLive/TLUtils.pm @@ -7,7 +7,7 @@ use strict; use warnings; package TeXLive::TLUtils; -my $svnrev = '$Revision: 69980 $'; +my $svnrev = '$Revision: 70794 $'; my $_modulerevision = ($svnrev =~ m/: ([0-9]+) /) ? $1 : "unknown"; sub module_revision { return $_modulerevision; } @@ -2267,7 +2267,7 @@ Run the ConTeXt cache generation commands, using C<$bindir> and C<$progext> to check if commands can be run. Use the function reference C<$run_postinst_cmd> to actually run the commands. The return status is zero if all succeeded, nonzero otherwise. If the main ConTeXt program -(C<luametatex>) cannot be run at all, the return status is status. +(C<luametatex>) cannot be run at all, the return status is zero. Functions C<info> and C<debug> are called with status reports. @@ -2289,16 +2289,24 @@ sub update_context_cache { # can be done about it. my $lmtx = "$bindir/luametatex$progext"; if (TeXLive::TLUtils::system_ok("$lmtx --version")) { - info("setting up ConTeXt cache: "); + info("setting up ConTeXt caches: "); $errcount += &$run_postinst_cmd("mtxrun --generate"); # # If mtxrun failed, don't bother trying more. if ($errcount == 0) { $errcount += &$run_postinst_cmd("context --luatex --generate"); # + # This is for finding fonts by font name (the --generate suffices + # for file name). Although ConTeXt does some automatic cache + # regeneration, Hans advises that this manual reload can help, and + # should be no harm. + # https://wiki.contextgarden.net/Use_the_fonts_you_want + # https://wiki.contextgarden.net/Mtxrun#base and #fonts + $errcount += &$run_postinst_cmd("mtxrun --script fonts --reload"); + # # If context succeeded too, try luajittex. Missing on some platforms. # Although we build luajittex normally, instead of importing the - # binary, testing for file existence should suffice, we may as + # binary, so testing for file existence should suffice, we may as # well test execution since it's just as easy. # if ($errcount == 0) { |