diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2011-06-02 12:58:53 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2011-06-02 12:58:53 +0000 |
commit | e2786c4ddf60bb4dbcc4f9c4ccca4b13bd10b6c3 (patch) | |
tree | 9e424310fa0d7a8d8d18c539a3dfa9f1b48f0f02 /Master/tlpkg | |
parent | 87ae32b7d3e63a631e17ef138a9601037b8c755e (diff) |
attempt a postaction script for context mkiv (file database generation)
git-svn-id: svn://tug.org/texlive/trunk@22735 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg')
-rw-r--r-- | Master/tlpkg/tlpostcode/context.pl | 37 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/context.tlpsrc | 3 |
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 |