summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/l3build/l3build-manifest-setup.lua
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-05-06 03:00:58 +0000
committerNorbert Preining <norbert@preining.info>2021-05-06 03:00:58 +0000
commit25f20b6d8ccd4edcdfec23c1a3c908516076ee06 (patch)
treef889e071118d7d2db80066d14d14b020c50a2238 /macros/latex/contrib/l3build/l3build-manifest-setup.lua
parent75db33dc347ec9cfbaa2f3ec538a2697351f571b (diff)
CTAN sync 202105060300
Diffstat (limited to 'macros/latex/contrib/l3build/l3build-manifest-setup.lua')
-rw-r--r--macros/latex/contrib/l3build/l3build-manifest-setup.lua26
1 files changed, 12 insertions, 14 deletions
diff --git a/macros/latex/contrib/l3build/l3build-manifest-setup.lua b/macros/latex/contrib/l3build/l3build-manifest-setup.lua
index 26bf1ca008..9fcf493729 100644
--- a/macros/latex/contrib/l3build/l3build-manifest-setup.lua
+++ b/macros/latex/contrib/l3build/l3build-manifest-setup.lua
@@ -1,6 +1,6 @@
--[[
-File l3build-manifest-setup.lua Copyright (C) 2018,2020 The LaTeX3 Project
+File l3build-manifest-setup.lua Copyright (C) 2018,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
@@ -54,7 +54,7 @@ for those people who are interested.
--]]
-manifest_setup = manifest_setup or function()
+function manifest_setup()
local groups = {
{
subheading = "Repository manifest",
@@ -221,18 +221,16 @@ end
--]]
manifest_sort_within_match = manifest_sort_within_match or function(files)
- local f = files
- table.sort(f)
- return f
+ table.sort(files)
+ return files
end
manifest_sort_within_group = manifest_sort_within_group or function(files)
- local f = files
--[[
-- no-op by default; make your own definition to customise. E.g.:
- table.sort(f)
+ table.sort(files)
--]]
- return f
+ return files
end
--[[
@@ -240,7 +238,7 @@ end
---------------
--]]
-manifest_write_opening = manifest_write_opening or function(filehandle)
+function manifest_write_opening(filehandle)
filehandle:write("# Manifest for " .. module .. "\n\n")
filehandle:write([[
@@ -250,7 +248,7 @@ It is automatically generated with `texlua build.lua manifest`.
end
-manifest_write_subheading = manifest_write_subheading or function(filehandle,heading,description)
+function manifest_write_subheading(filehandle,heading,description)
filehandle:write("\n\n## " .. heading .. "\n\n")
@@ -260,7 +258,7 @@ manifest_write_subheading = manifest_write_subheading or function(filehandle,hea
end
-manifest_write_group_heading = manifest_write_group_heading or function (filehandle,heading,description)
+function manifest_write_group_heading(filehandle,heading,description)
filehandle:write("\n### " .. heading .. "\n\n")
@@ -270,7 +268,7 @@ manifest_write_group_heading = manifest_write_group_heading or function (filehan
end
-manifest_write_group_file = manifest_write_group_file or function(filehandle,filename,param)
+function manifest_write_group_file(filehandle,filename,param)
--[[
filehandle : write file object
filename : the count of the filename to be written
@@ -296,7 +294,7 @@ manifest_write_group_file = manifest_write_group_file or function(filehandle,fil
end
-manifest_write_group_file_descr = manifest_write_group_file_descr or function(filehandle,filename,descr,param)
+function manifest_write_group_file_descr(filehandle,filename,descr,param)
--[[
filehandle : write file object
filename : the name of the file to write
@@ -326,7 +324,7 @@ end
-------------------------------------------
--]]
-manifest_extract_filedesc = manifest_extract_filedesc or function(filehandle)
+function manifest_extract_filedesc(filehandle)
-- no-op by default; two examples below