[latex3-commits] [latex3/latex2e] gh1412: hook to bundleunpack (289fa549)

github at latex-project.org github at latex-project.org
Thu Sep 12 21:49:02 CEST 2024


Repository : https://github.com/latex3/latex2e
On branch  : gh1412
Link       : https://github.com/latex3/latex2e/commit/289fa5492ce5aab1134e52d67b763cab929345ad

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

commit 289fa5492ce5aab1134e52d67b763cab929345ad
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Thu Sep 12 20:49:02 2024 +0100

    hook to bundleunpack


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

289fa5492ce5aab1134e52d67b763cab929345ad
 required/tools/build.lua | 24 ++++++++----------------
 1 file changed, 8 insertions(+), 16 deletions(-)

diff --git a/required/tools/build.lua b/required/tools/build.lua
index b333fd1c..5b375758 100644
--- a/required/tools/build.lua
+++ b/required/tools/build.lua
@@ -40,29 +40,21 @@ checkconfigs = {"build","config-TU","config-legacy","config-search"}
 dofile (maindir .. "/build-config.lua")
 
 -- special code to handle .tex
-
-function unpack(sources, sourcedirs)
-  local errorlevel = dep_install(unpackdeps)
-  if errorlevel ~= 0 then
-    return errorlevel
-  end
-  errorlevel = bundleunpack(sourcedirs, sources)
-  if errorlevel ~= 0 then
-    return errorlevel
-  end
-  texio.write(" * Renaming rename-to-empty-base.tex to .tex")
-  errorlevel = ren(unpackdir,"rename-to-empty-base.tex",".tex")
+oldbundleunpack=bundleunpack
+function bundleunpack(sourcedirs, sources)
+  errorlevel = oldbundleunpack(sourcedirs, sources)
   if errorlevel ~= 0 then
     return errorlevel
   end
-  for _,i in ipairs(installfiles) do
-    errorlevel = cp(i, unpackdir, localdir)
+  if module == "tools" then
+    texio.write(" * Renaming rename-to-empty-base.tex to .tex\n")
+    errorlevel = ren(unpackdir,"rename-to-empty-base.tex",".tex")
     if errorlevel ~= 0 then
-      return errorlevel
+     return errorlevel
     end
   end
   return 0
 end
 
 -- update function binding
-target_list.unpack.func = unpack
+target_list.bundleunpack.func = bundleunpack





More information about the latex3-commits mailing list.