From e2786c4ddf60bb4dbcc4f9c4ccca4b13bd10b6c3 Mon Sep 17 00:00:00 2001 From: Taco Hoekwater Date: Thu, 2 Jun 2011 12:58:53 +0000 Subject: attempt a postaction script for context mkiv (file database generation) git-svn-id: svn://tug.org/texlive/trunk@22735 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/tlpostcode/context.pl | 37 +++++++++++++++++++++++++++++++++++++ Master/tlpkg/tlpsrc/context.tlpsrc | 3 +++ 2 files changed, 40 insertions(+) create mode 100644 Master/tlpkg/tlpostcode/context.pl (limited to 'Master') 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 -- cgit v1.2.3