summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-07-07 20:55:04 +0000
committerNorbert Preining <preining@logic.at>2008-07-07 20:55:04 +0000
commit26e820639f28a316481188ade48890d41b797f92 (patch)
tree3bdcaa323ed469f0524022e58553fb729e7cb995 /Master
parentc345bbaf0f02368643dc7dfce846e8d1938012b2 (diff)
TLPostActions from bin-context, but not activated
git-svn-id: svn://tug.org/texlive/trunk@9346 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/tlpkg/TeXLive/TLPostActions.pm23
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
#