summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf')
-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);