[latex3-commits] [latex3/l3build] main: Initialize all boolean config variables (8c17120)
github at latex-project.org
github at latex-project.org
Mon Nov 18 23:37:11 CET 2024
Repository : https://github.com/latex3/l3build
On branch : main
Link : https://github.com/latex3/l3build/commit/8c17120cc3864bfbfd94efaaf81b558622883d8c
>---------------------------------------------------------------
commit 8c17120cc3864bfbfd94efaaf81b558622883d8c
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Tue Nov 19 06:19:27 2024 +0800
Initialize all boolean config variables
>---------------------------------------------------------------
8c17120cc3864bfbfd94efaaf81b558622883d8c
CHANGELOG.md | 3 +++
l3build-variables.lua | 11 +++++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6af7221..7393d97 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+### Changed
+- Initialize all boolean config variables.
+
### Fixed
- Skip README rename when this has no extension (issue \#388)
diff --git a/l3build-variables.lua b/l3build-variables.lua
index 123e509..43b8108 100644
--- a/l3build-variables.lua
+++ b/l3build-variables.lua
@@ -183,6 +183,9 @@ end
-- Other required settings
asciiengines = asciiengines or {"pdftex"}
checkruns = checkruns or 1
+if forcecheckruns == nil then
+ forcecheckruns = false
+end
ctanreadme = ctanreadme or "README.md"
ctanzip = ctanzip or ctanpkg .. "-ctan"
epoch = epoch or 1463734800
@@ -193,12 +196,16 @@ if flattentds == nil then
flattentds = true
end
maxprintline = maxprintline or 9999
-packtdszip = packtdszip or false
+if packtdszip == nil then
+ packtdszip = false
+end
-- support "ps2pdfopt" for backward compatibility, gh issue #275
ps2pdfopts = ps2pdfopts or ps2pdfopt or ""
typesetcmds = typesetcmds or ""
typesetruns = typesetruns or 3
-recordstatus = recordstatus or false
+if recordstatus == nil then
+ recordstatus = false
+end
-- Extensions for various file types: used to abstract out stuff a bit
bakext = bakext or ".bak"
More information about the latex3-commits
mailing list.