diff options
-rwxr-xr-x | Master/install-tl | 17 | ||||
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.pl | 3 |
2 files changed, 8 insertions, 12 deletions
diff --git a/Master/install-tl b/Master/install-tl index 0155b8c3108..1e412518a42 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -856,18 +856,11 @@ operations might be disturbed.\n\n"; system("mktexlsr", $TEXMFSYSVAR, $TEXMFSYSCONFIG); # luatex/context - # we only call luatools --generate once at installation time, the - # rest must be managed by the user, Taco email 2010-05-26 - # - # disabled since we are not multi user capable, email taco 2010-06-08 - #if (exists($install{"context"}) && $install{"context"} == 1) { - # info("making ConTeXt MkIV cache with luatools --generate, be patient..."); - # chomp (my $tmv = `kpsewhich -expand-braces="$vars{TEXMFVAR}"`); - # log("\n TEXMFVAR=$vars{TEXMFVAR}, expanded to $tmv for mkdirhier\n"); - # mkdirhier ($tmv); # don't be asked about making the dir - # log(`luatools --generate 2>&1`); - # info("done\n"); - #} + if (exists($install{"context"}) && $install{"context"} == 1) { + info("setting up ConTeXt MkIV cache with mtxrun --generate ..."); + system('mtxrun', '--generate'); + info("done\n"); + } # all formats option if ($vars{'option_fmt'}) { diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index 81322002c5e..19daa0447cc 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -574,6 +574,9 @@ sub handle_execute_actions if ($::files_changed) { $errors += do_cmd_and_check("mktexlsr"); + if (defined($localtlpdb->get_package('context'))) { + $errors += do_cmd_and_check("mtxrun --generate"); + } $::files_changed = 0; } |