summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/tlpkg/tlpostcode/context.pl37
-rw-r--r--Master/tlpkg/tlpsrc/context.tlpsrc3
2 files changed, 40 insertions, 0 deletions
diff --git a/Master/tlpkg/tlpostcode/context.pl b/Master/tlpkg/tlpostcode/context.pl
new file mode 100644
index 00000000000..dd6c51854f0
--- /dev/null
+++ b/Master/tlpkg/tlpostcode/context.pl
@@ -0,0 +1,37 @@
+# $Id$
+# post action for context
+# Written in 2011 by Taco Hoekwater
+# public domain
+
+my $texdir;
+my $mode;
+
+BEGIN {
+ $^W = 1;
+ $mode = lc($ARGV[0]);
+ $texdir = $ARGV[1];
+}
+
+if ($mode eq 'install') {
+ do_install();
+} elsif ($mode eq 'remove') {
+ do_remove();
+} else {
+ die("unknown mode: $mode\n");
+}
+
+sub do_remove {
+ # do nothing
+}
+
+sub do_install {
+ # initialize filename database
+ my $retval = `mtxrun --generate` ) ;
+}
+
+### Local Variables:
+### perl-indent-level: 2
+### tab-width: 2
+### indent-tabs-mode: nil
+### End:
+# vim:set tabstop=2 expandtab: #
diff --git a/Master/tlpkg/tlpsrc/context.tlpsrc b/Master/tlpkg/tlpsrc/context.tlpsrc
index 1e2467df00e..6e834b65fdd 100644
--- a/Master/tlpkg/tlpsrc/context.tlpsrc
+++ b/Master/tlpkg/tlpsrc/context.tlpsrc
@@ -30,6 +30,9 @@ execute AddFormat name=cont-ro mode=disabled engine=pdftex \
# contnav, hans, hans-sh fonts.
execute addMap original-context-symbol.map
#
+# initialize filename database
+postaction script file=tlpkg/tlpostcode/context.pl
+#
runpattern +d texmf-dist/context/data
runpattern +d texmf-dist/fonts/cid/fontforge
runpattern +d texmf-dist/colors/icc