Merge pull request #15340 from jraygauthier/jrg/fix_xetex_and_others_since_merge_of_context_fix
texlive.combine: fix build
This commit is contained in:
commit
82dc880fbd
|
@ -66,6 +66,25 @@ in buildEnv {
|
||||||
# TODO: perhaps do lua actions?
|
# TODO: perhaps do lua actions?
|
||||||
# tried inspiration from install-tl, sub do_texmf_cnf
|
# tried inspiration from install-tl, sub do_texmf_cnf
|
||||||
''
|
''
|
||||||
|
patchCnfLua() {
|
||||||
|
local cnfLua="$1"
|
||||||
|
|
||||||
|
if [ -e "$cnfLua" ]; then
|
||||||
|
local cnfLuaOrig="$(realpath "$cnfLua")"
|
||||||
|
rm ./texmfcnf.lua
|
||||||
|
sed \
|
||||||
|
-e 's,texmf-dist,texmf,g' \
|
||||||
|
-e 's,texmf-local,texmf,g' \
|
||||||
|
-e "s,\(TEXMFLOCAL[ ]*=[ ]*\)[^\,]*,\1\"$out/share/texmf\",g" \
|
||||||
|
-e "s,\$SELFAUTOLOC,$out,g" \
|
||||||
|
-e "s,selfautodir:/,$out/share/,g" \
|
||||||
|
-e "s,selfautodir:,$out/share/,g" \
|
||||||
|
-e "s,selfautoparent:/,$out/share/,g" \
|
||||||
|
-e "s,selfautoparent:,$out/share/,g" \
|
||||||
|
"$cnfLuaOrig" > "$cnfLua"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
(
|
(
|
||||||
cd ./share/texmf/web2c/
|
cd ./share/texmf/web2c/
|
||||||
local cnfOrig="$(realpath ./texmf.cnf)"
|
local cnfOrig="$(realpath ./texmf.cnf)"
|
||||||
|
@ -79,18 +98,7 @@ in buildEnv {
|
||||||
-e "s,\$SELFAUTOGRANDPARENT,$out/share,g" \
|
-e "s,\$SELFAUTOGRANDPARENT,$out/share,g" \
|
||||||
"$cnfOrig" > ./texmf.cnf
|
"$cnfOrig" > ./texmf.cnf
|
||||||
|
|
||||||
local cnfLuaOrig="$(realpath ./texmfcnf.lua)"
|
patchCnfLua "./texmfcnf.lua"
|
||||||
rm ./texmfcnf.lua
|
|
||||||
sed \
|
|
||||||
-e 's,texmf-dist,texmf,g' \
|
|
||||||
-e 's,texmf-local,texmf,g' \
|
|
||||||
-e "s,\(TEXMFLOCAL[ ]*=[ ]*\)[^\,]*,\1\"$out/share/texmf\",g" \
|
|
||||||
-e "s,\$SELFAUTOLOC,$out,g" \
|
|
||||||
-e "s,selfautodir:/,$out/share/,g" \
|
|
||||||
-e "s,selfautodir:,$out/share/,g" \
|
|
||||||
-e "s,selfautoparent:/,$out/share/,g" \
|
|
||||||
-e "s,selfautoparent:,$out/share/,g" \
|
|
||||||
"$cnfLuaOrig" > ./texmfcnf.lua
|
|
||||||
|
|
||||||
rm updmap.cfg
|
rm updmap.cfg
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue