[latex3-commits] [git/LaTeX3-latex3-latex3] LaTeX2020: Fix format-renaming for (u)pTeX (6b8e02719)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Oct 3 08:48:17 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : LaTeX2020
Link       : https://github.com/latex3/latex3/commit/6b8e027194414c076539db60af02a49b56471cb2

>---------------------------------------------------------------

commit 6b8e027194414c076539db60af02a49b56471cb2
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Oct 3 07:48:17 2019 +0100

    Fix format-renaming for (u)pTeX


>---------------------------------------------------------------

6b8e027194414c076539db60af02a49b56471cb2
 build-config.lua | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/build-config.lua b/build-config.lua
index 63db7cf15..ef58bbe48 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -110,13 +110,14 @@ local function fmt(engines,dest)
       .. " " .. src .. " > " .. os_null)
     if errorlevel ~= 0 then return errorlevel end
 
-    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)
+    local engname = string.match(src,"^[^.]*") .. ".fmt"
+    local fmtname = string.gsub(engine,"tex$","") .. "latex.fmt"
+    print(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