From 8c17120cc3864bfbfd94efaaf81b558622883d8c Mon Sep 17 00:00:00 2001 From: Yukai Chou Date: Tue, 19 Nov 2024 06:19:27 +0800 Subject: [PATCH] Initialize all boolean config variables --- CHANGELOG.md | 3 +++ l3build-variables.lua | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6af72214..7393d976 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 123e509a..43b81084 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"