[latex3-commits] [git/LaTeX3-latex3-latex3] l3color-luaotfload: Move .ins instructions for Lua file into separate part of file (5f4f6ed89)
Marcel Fabian Krüger
tex at 2krueger.de
Mon Feb 27 21:42:38 CET 2023
Repository : https://github.com/latex3/latex3
On branch : l3color-luaotfload
Link : https://github.com/latex3/latex3/commit/5f4f6ed89a5aa5630c1ae3320e9a8e0d2ba5babb
>---------------------------------------------------------------
commit 5f4f6ed89a5aa5630c1ae3320e9a8e0d2ba5babb
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Mon Feb 27 21:42:38 2023 +0100
Move .ins instructions for Lua file into separate part of file
>---------------------------------------------------------------
5f4f6ed89a5aa5630c1ae3320e9a8e0d2ba5babb
l3backend/build.lua | 2 +-
l3backend/l3backend.ins | 42 ++++++++++++++++++++++++++++--------------
2 files changed, 29 insertions(+), 15 deletions(-)
diff --git a/l3backend/build.lua b/l3backend/build.lua
index a1409e494..5df51b8fd 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", "*.lua"}
+installfiles = {"*.def", "*.pro", "l3backend*.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 f35da4822..5b8945f01 100644
--- a/l3backend/l3backend.ins
+++ b/l3backend/l3backend.ins
@@ -52,9 +52,6 @@ and all files in that bundle must be distributed together.
\postamble
\endpostamble
-\edef\luapreamble{--[[^^J\defaultpreamble^^J]]}
-\edef\luapostamble{--[[^^J\defaultpostamble^^J]]}
-
\keepsilent
\generate
@@ -113,17 +110,6 @@ and all files in that bundle must be distributed together.
\from{l3backend-opacity.dtx} {package,luatex}
}
}
-\generate
- {
- \def\MetaPrefix{--}
- \usepreamble\luapreamble
- \usepostamble\luapostamble
- \file{l3backend-luatex.lua}
- {
- \from{l3backend-color.dtx} {lua,luatex}
- \from{l3backend-opacity.dtx} {lua,luatex}
- }
- }
\generate
{
\file{l3backend-pdftex.def}
@@ -151,4 +137,32 @@ and all files in that bundle must be distributed together.
}
}
+% Lua code
+
+\def\MetaPrefix{--}
+\preamble
+
+Copyright (C) 2023 The LaTeX Project
+
+It may be distributed and/or modified under the conditions of
+the LaTeX Project Public License (LPPL), either version 1.3c of
+this license or (at your option) any later version. The latest
+version of this license is in the file:
+
+ https://www.latex-project.org/lppl.txt
+
+This file is part of the "l3backend bundle" (The Work in LPPL)
+and all files in that bundle must be distributed together.
+
+\endpreamble
+\nopostamble
+\generate
+ {
+ \file{l3backend-luatex.lua}
+ {
+ \from{l3backend-color.dtx} {lua}
+ \from{l3backend-opacity.dtx} {lua}
+ }
+ }
+
\endbatchfile
More information about the latex3-commits
mailing list.