diff options
-rw-r--r-- | Master/tlpkg/TeXLive/TLPostActions.pm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLPostActions.pm b/Master/tlpkg/TeXLive/TLPostActions.pm index 65fd335eea2..4314f5cf666 100644 --- a/Master/tlpkg/TeXLive/TLPostActions.pm +++ b/Master/tlpkg/TeXLive/TLPostActions.pm @@ -25,6 +25,29 @@ my $mainmenu = "TeX Live 2008"; our %PostInstall; our %PostRemove; +# +# context post install actions +sub do_install_bin_context { + my ($texdir, $texdirw, $texmfsysvar) = @_; + # set up texmfcnf.lua + my $TMF = "$texdirw/texmf/web2c/texmfcnf.lua"; + if (! -r $TMF) { + open(TMF, ">$TMF") || die "open($TMF) failed: $!\n"; + print TMF 'local conf = {}', "\n"; + print TMF "conf.TEXMFCACHE = \"$texmfsysvar/luatex-cache/context\"\n"; + print TMF "return conf\n"; + close(TMF) || warn "close($TMF) failed: $!"; + } + # update the luatools cache + system("luatools", "--generate"); + # build the context formats based on luatex + system("context", "--make", "--compile", "cont-en"); +} +# +# disabled by now +# what to do with permissions, multi-user, etc etc etc +#$PostInstall{"bin-context"} = \&do_install_bin_context; + # xetex # |