From 6338c3fe69f2e3d729d40494a11f5cf4eea59d55 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 28 May 2010 04:53:02 +0000 Subject: fix undefined TEXMFVAR in luatools --generate call git-svn-id: svn://tug.org/texlive/trunk@18543 c570f23f-e606-0410-a88d-b1316a301751 --- Master/install-tl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Master/install-tl b/Master/install-tl index 0a15525788a..3847c0c553c 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -639,7 +639,6 @@ sub do_postinst_stuff { my $TEXDIR="$vars{'TEXDIR'}"; my $TEXDIRW="$vars{'TEXDIRW'}"; my $TEXMFSYSVAR="$vars{'TEXMFSYSVAR'}"; - my $TEXMFVAR="$vars{'TEXMFVAR'}"; my $TEXMFSYSCONFIG="$vars{'TEXMFSYSCONFIG'}"; my $TEXMFLOCAL="$vars{'TEXMFLOCAL'}"; my $tmv; @@ -812,7 +811,12 @@ operations might be disturbed.\n\n"; # rest must be managed by the user, Taco email 2010-05-26 if (exists($install{"context"}) && $install{"context"} == 1) { info("Generating the initial ConTeXt MkIV cache, be patient ..."); - mkdirhier($TEXMFVAR); + # we put the luatex cache into TEXMFVAR which will solve the problem + # of pregeneration for most people (single user). With multi user + # installations that luatools --generate has to be run by every + # user that did not install TL himself. + chomp (my $tmv = `kpsewhich -var-value=TEXMFVAR`); + mkdirhier($tmv); log(`luatools --generate 2>&1`); info("done\n"); } -- cgit v1.2.3