[latex3-commits] [git/LaTeX3-latex3-latex2e] LaTeX2020: Improve fmt installation (c37a62fc)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sun Oct 13 08:32:39 CEST 2019
Repository : https://github.com/latex3/latex2e
On branch : LaTeX2020
Link : https://github.com/latex3/latex2e/commit/c37a62fc4679606b062df4feea2dc849b8f7efaa
>---------------------------------------------------------------
commit c37a62fc4679606b062df4feea2dc849b8f7efaa
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.
>---------------------------------------------------------------
c37a62fc4679606b062df4feea2dc849b8f7efaa
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