[latex3-commits] [git/LaTeX3-latex3-latex3] l3color-luaotfload: Correctly generate Lua file for backend (a007be66b)
Marcel Fabian Krüger
tex at 2krueger.de
Sun Feb 26 20:44:23 CET 2023
Repository : https://github.com/latex3/latex3
On branch : l3color-luaotfload
Link : https://github.com/latex3/latex3/commit/a007be66bc73a027542e5a452ecdedeafa90ad28
>---------------------------------------------------------------
commit a007be66bc73a027542e5a452ecdedeafa90ad28
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Sun Feb 26 16:37:05 2023 +0100
Correctly generate Lua file for backend
>---------------------------------------------------------------
a007be66bc73a027542e5a452ecdedeafa90ad28
l3backend/build.lua | 2 +-
l3backend/l3backend.ins | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/l3backend/build.lua b/l3backend/build.lua
index c3a92a2c8..a1409e494 100644
--- a/l3backend/build.lua
+++ b/l3backend/build.lua
@@ -9,7 +9,7 @@ bundle = ""
-- Location of main directory: use Unix-style path separators
maindir = ".."
-installfiles = {"*.def", "*.pro"}
+installfiles = {"*.def", "*.pro", "*.lua"}
sourcefiles = {"*.dtx", "*.ins"}
tagfiles = {"*.dtx", "CHANGELOG.md", "README.md", "*.ins"}
typesetfiles = {"l3backend-code.tex"}
diff --git a/l3backend/l3backend.ins b/l3backend/l3backend.ins
index 510cdff6d..f35da4822 100644
--- a/l3backend/l3backend.ins
+++ b/l3backend/l3backend.ins
@@ -52,6 +52,9 @@ and all files in that bundle must be distributed together.
\postamble
\endpostamble
+\edef\luapreamble{--[[^^J\defaultpreamble^^J]]}
+\edef\luapostamble{--[[^^J\defaultpostamble^^J]]}
+
\keepsilent
\generate
@@ -112,6 +115,9 @@ and all files in that bundle must be distributed together.
}
\generate
{
+ \def\MetaPrefix{--}
+ \usepreamble\luapreamble
+ \usepostamble\luapostamble
\file{l3backend-luatex.lua}
{
\from{l3backend-color.dtx} {lua,luatex}
More information about the latex3-commits
mailing list.