texlive.combine: generate language.dat.lua
This commit is contained in:
parent
7d12a7dde9
commit
6603342bb6
1 changed files with 8 additions and 0 deletions
|
@ -137,12 +137,20 @@ in (buildEnv {
|
||||||
# pick up the footer (for language.def)
|
# pick up the footer (for language.def)
|
||||||
+ "/^%%% No changes may be made beyond this point.$/,$p;\n"
|
+ "/^%%% No changes may be made beyond this point.$/,$p;\n"
|
||||||
);
|
);
|
||||||
|
scriptLua =
|
||||||
|
writeText "hyphens.lua.sed" (
|
||||||
|
"1{ s/^(-- Generated by .*)$/\\1, modified by texlive.combine/; p; }\n"
|
||||||
|
+ "2,/^-- END of language.us.lua/p;\n"
|
||||||
|
+ lib.concatMapStrings (pname: section "^-- from ${pname}:$" "^}$|^-- from") pnames
|
||||||
|
+ "$p;\n"
|
||||||
|
);
|
||||||
in ''
|
in ''
|
||||||
(
|
(
|
||||||
cd ./share/texmf/tex/generic/config/
|
cd ./share/texmf/tex/generic/config/
|
||||||
for fname in language.{dat,def}; do
|
for fname in language.{dat,def}; do
|
||||||
[[ -e "$fname" ]] && sed -E -n -f '${script}' -i "$fname"
|
[[ -e "$fname" ]] && sed -E -n -f '${script}' -i "$fname"
|
||||||
done
|
done
|
||||||
|
[[ -e language.dat.lua ]] && sed -E -n -f '${scriptLua}' -i language.dat.lua
|
||||||
)
|
)
|
||||||
'') +
|
'') +
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue