[latex3-commits] [latex3/latex2e] develop: hook to bundleunpack (353691c0)
github at latex-project.org
github at latex-project.org
Sun Sep 15 20:27:07 CEST 2024
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/353691c0b34a4985f46db1c476baa9dc73bde84b
>---------------------------------------------------------------
commit 353691c0b34a4985f46db1c476baa9dc73bde84b
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Thu Sep 12 20:49:02 2024 +0100
hook to bundleunpack
>---------------------------------------------------------------
353691c0b34a4985f46db1c476baa9dc73bde84b
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.