summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-05-31 07:28:39 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-05-31 07:28:39 +0000
commitc31b57573a53ce3637fe67c1a849b6aae6604d4b (patch)
tree9616ef1d18f3fb24564f104eb5e146a2da63c4de
parentcd96a4cbbb24932d1bc77fab7a26c3ed9018c036 (diff)
Generate language.dat.lua so that generate --rebuild-sys language works
betters. (This is only a quick hack, a better fix would probably involve changing fmtutil-sys.) git-svn-id: svn://tug.org/texlive/trunk@18637 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl18
1 files changed, 9 insertions, 9 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index c7528726f1a..0e39eb74c6a 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -3222,6 +3222,15 @@ sub action_generate {
#
# we have to set TEXMFVAR, TEXMFCONFIG in the environment so that
# searching for language.(dat/def) does search in the right place
+ if ($what =~ m/^language(\.dat\.lua)?$/i) {
+ my $dest = $opts{"dest"} ||
+ "$TEXMFSYSVAR/tex/generic/config/language.dat.lua";
+ $dest .= ".dat.lua" if $append_extension;
+ my $localcfg = $opts{"localcfg"} ||
+ "$TEXMFLOCAL/tex/generic/config/language-local.dat.lua";
+ debug("$0: writing language.dat.lua data to $dest\n");
+ TeXLive::TLUtils::create_language_lua($localtlpdb, $dest, $localcfg);
+ }
if ($what =~ m/^language(\.dat)?$/i) {
my $dest = $opts{"dest"} ||
"$TEXMFSYSVAR/tex/generic/config/language.dat";
@@ -3252,15 +3261,6 @@ sub action_generate {
. " run fmtutil-sys --byhyphen $dest.\n");
}
}
- if ($what =~ m/^language(\.dat\.lua)?$/i) {
- my $dest = $opts{"dest"} ||
- "$TEXMFSYSVAR/tex/generic/config/language.dat.lua";
- $dest .= ".dat.lua" if $append_extension;
- my $localcfg = $opts{"localcfg"} ||
- "$TEXMFLOCAL/tex/generic/config/language-local.dat.lua";
- debug("$0: writing language.dat.lua data to $dest\n");
- TeXLive::TLUtils::create_language_lua($localtlpdb, $dest, $localcfg);
- }
} elsif ($what =~ m/^fmtutil$/i) {
my $dest = $opts{"dest"} || "$TEXMFSYSVAR/web2c/fmtutil.cnf";