summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-01-13 14:17:38 +0000
committerNorbert Preining <preining@logic.at>2009-01-13 14:17:38 +0000
commite377e44a8a694b2f5f588953faa074f3ba1c9dfd (patch)
tree9419fd09f4a45925c7c80be1f8234e24828bc361
parent2a180befc695e8bc720e3b0df80eb7506812d727 (diff)
same for tlmgr2.pl
git-svn-id: svn://tug.org/texlive/trunk@11855 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr2.pl11
1 files changed, 10 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr2.pl b/Master/texmf/scripts/texlive/tlmgr2.pl
index c046c1e4f7f..fb71e37ba77 100755
--- a/Master/texmf/scripts/texlive/tlmgr2.pl
+++ b/Master/texmf/scripts/texlive/tlmgr2.pl
@@ -2115,7 +2115,16 @@ sub action_generate {
if $::machinereadble;
init_local_db();
+ # we create fmtutil.cnf, language.dat, language.def in TEXMFSYSVAR
+ # and updmap.cfg in TEXMFSYSCONFIG. The reason is that calls to
+ # updmap-sys (as is done by the tlmgr update call when packages with
+ # maps are installed) will create the updmap.cfg file in TEXMFSYSCONFIG
+ # from the version in TEXMFSYSVAR. But after that the TEXMFSYSCONFIG
+ # takes precedence and the mechanism explained in updmap.cfg header
+ # does not work.
+ #
chomp (my $TEXMFSYSVAR = `kpsewhich -var-value=TEXMFSYSVAR`);
+ chomp (my $TEXMFSYSCONFIG = `kpsewhich -var-value=TEXMFSYSCONFIG`);
chomp (my $TEXMFLOCAL = `kpsewhich -var-value=TEXMFLOCAL`);
if ($what =~ m/^language(\.dat|\.def)?$/i) {
@@ -2140,7 +2149,7 @@ sub action_generate {
TeXLive::TLUtils::create_fmtutil($localtlpdb, $dest, $localconf);
} elsif ($what =~ m/^updmap$/i) {
- $dest ||= "$TEXMFSYSVAR/web2c/updmap.cfg";
+ $dest ||= "$TEXMFSYSCONFIG/web2c/updmap.cfg";
$localconf ||= "$TEXMFLOCAL/web2c/updmap-local.cfg";
debug("$0: writing new updmap.cfg to $dest\n");
TeXLive::TLUtils::create_updmap($localtlpdb, $dest, $localconf);