summaryrefslogtreecommitdiff
path: root/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/texlive/linked_scripts/l3build/l3build.lua')
-rw-r--r--Build/source/texk/texlive/linked_scripts/l3build/l3build.lua25
1 files changed, 9 insertions, 16 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua b/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
index e7acd47fb3b..0b68ee1617d 100644
--- a/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
+++ b/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
@@ -2,7 +2,7 @@
--[[
-File l3build.lua Copyright (C) 2014-2020 The LaTeX3 Project
+File l3build.lua Copyright (C) 2014-2020 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
@@ -25,7 +25,7 @@ for those people who are interested.
--]]
-- Version information
-release_date = "2020-06-04"
+release_date = "2021-05-05"
-- File operations are aided by the LuaFileSystem module
local lfs = require("lfs")
@@ -79,18 +79,12 @@ elseif options["target"] == "version" then
exit(0)
end
--- Allow main function to be disabled 'higher up'
-main = main or stdmain
-
--- Load configuration file if running as a script
-if match(arg[0], "l3build$") or match(arg[0], "l3build%.lua$") then
- -- Look for some configuration details
- if fileexists("build.lua") then
- dofile("build.lua")
- else
- print("Error: Cannot find configuration build.lua")
- exit(1)
- end
+-- Look for some configuration details
+if fileexists("build.lua") then
+ dofile("build.lua")
+else
+ print("Error: Cannot find configuration build.lua")
+ exit(1)
end
-- Load standard settings for variables:
@@ -120,7 +114,7 @@ if options["epoch"] then
forcecheckepoch = true
forcedocepoch = true
end
-normalise_epoch()
+epoch = normalise_epoch(epoch)
-- Sanity check
check_engines()
@@ -159,7 +153,6 @@ if options["target"] == "check" then
print("\n Check failed with difference files")
local testdir = testdir
if config ~= "build" then
- resultdir = resultdir .. "-" .. config
testdir = testdir .. "-" .. config
end
for _,i in ipairs(filelist(testdir,"*" .. os_diffext)) do