[latex3-commits] [latex3/l3build] main: Refine UTC support (ca69dd8)
github at latex-project.org
github at latex-project.org
Wed Sep 6 06:52:56 CEST 2023
Repository : https://github.com/latex3/l3build
On branch : main
Link : https://github.com/latex3/l3build/commit/ca69dd8336ee47d68b35c933fd4242eaabbdb1b2
>---------------------------------------------------------------
commit ca69dd8336ee47d68b35c933fd4242eaabbdb1b2
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Sep 6 05:52:56 2023 +0100
Refine UTC support
>---------------------------------------------------------------
ca69dd8336ee47d68b35c933fd4242eaabbdb1b2
CHANGELOG.md | 3 +++
l3build.lua | 23 ++++++++++++++---------
2 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e23a776..2b58d29 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+### Changed
+- Refine `-utc` support
+
## [2023-09-05]
### Changed
diff --git a/l3build.lua b/l3build.lua
index 66f50e9..a48dc3a 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -118,15 +118,20 @@ if options["epoch"] then
end
epoch = normalise_epoch(epoch)
-- LuaTeX needs the `-utc` option
-if next(specialformats) and next(specialformats.latex)
- and next (specialformats.latex.luatex) then
- local options = specialformats.latex.luatex.options
- specialformats.latex.luatex.options = (options and (options .. " ") or "") .. "-utc"
-end
-if next(specialformats) and next(specialformats["latex-dev"])
- and next (specialformats["latex-dev"].luatex) then
- local options = specialformats["latex-dev"].luatex.options
- specialformats["latex-dev"].luatex.options = (options and (options .. " ") or "") .. "-utc"
+if forcecheckepoch then
+ if next(specialformats) and next(specialformats.latex)
+ and next (specialformats.latex.luatex) then
+ local options = specialformats.latex.luatex.options
+ specialformats.latex.luatex.options = (options and (options .. " ") or "") .. "-utc"
+ end
+ if next(specialformats) and next(specialformats["latex-dev"])
+ and next (specialformats["latex-dev"].luatex) then
+ local options = specialformats["latex-dev"].luatex.options
+ specialformats["latex-dev"].luatex.options = (options and (options .. " ") or "") .. "-utc"
+ end
+ if match(typesetexe,"luatex") or match(typesetexe,"lualatex") then
+ typesetopts = typsetopts .. " -utc"
+ end
end
--
More information about the latex3-commits
mailing list.