[latex3-commits] [git/LaTeX3-latex3-latex3] LaTeX2020: Fix format-renaming for (u)pTeX (964c51576)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Oct 3 00:05:06 CEST 2019
Repository : https://github.com/latex3/latex3
On branch : LaTeX2020
Link : https://github.com/latex3/latex3/commit/964c515765a8fc268ab74f15283b256e530a90ba
>---------------------------------------------------------------
commit 964c515765a8fc268ab74f15283b256e530a90ba
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Oct 2 23:05:06 2019 +0100
Fix format-renaming for (u)pTeX
>---------------------------------------------------------------
964c515765a8fc268ab74f15283b256e530a90ba
build-config.lua | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/build-config.lua b/build-config.lua
index 4c9db32fd..63db7cf15 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -109,9 +109,12 @@ local function fmt(engines,dest)
.. os_concat .. cmd .. " -etex -ini -output-directory=" .. unpackdir
.. " " .. src .. " > " .. os_null)
if errorlevel ~= 0 then return errorlevel end
- local fmtname = string.gsub(engine,"tex$","") .. "latex.fmt"
- if fileexists (unpackdir,"latex.fmt") then
- ren(unpackdir,"latex.fmt",fmtname)
+
+ local fmtname = string.match(src,"^[^.]*") .. ".fmt"
+ if not fileexists(unpackdir,fmtname) then
+ local fmt = string.match(src,"^[^.]*")
+ fmtname = string.gsub(engine,"tex$","") .. fmt .. ".fmt"
+ ren(unpackdir,fmt .. ".fmt",fmtname)
end
cp(fmtname,unpackdir,dest)
return 0
More information about the latex3-commits
mailing list