[latex3-commits] [git/LaTeX3-latex3-latex2e] LaTeX2020: Improve fmt installation (c6693621)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sun Oct 13 21:51:59 CEST 2019
Repository : https://github.com/latex3/latex2e
On branch : LaTeX2020
Link : https://github.com/latex3/latex2e/commit/c6693621a18f12c822373b10d6c53d55dc685ff3
>---------------------------------------------------------------
commit c6693621a18f12c822373b10d6c53d55dc685ff3
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sat Oct 12 23:39:40 2019 +0100
Improve fmt installation
Based on the L3 version.
>---------------------------------------------------------------
c6693621a18f12c822373b10d6c53d55dc685ff3
build-config.lua | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/build-config.lua b/build-config.lua
index d4419ff3..e2fbb17e 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -198,12 +198,15 @@ local function fmt(engines,dest)
.. " " .. src
.. (hide and (" > " .. os_null) or ""))
if errorlevel ~= 0 then return errorlevel end
+
+ local engname = string.match(src,"^[^.]*") .. ".fmt"
local fmtname = string.gsub(engine,"tex$","") .. "latex.fmt"
if engine == "etex" then fmtname = "latex.fmt" end
- if fileexists (unpackdir,"latex.fmt") then
- ren(unpackdir,"latex.fmt",fmtname)
+ if engname ~= fmtname then
+ ren(unpackdir,engname,fmtname)
end
cp(fmtname,unpackdir,dest)
+
return 0
end
More information about the latex3-commits
mailing list