[latex3-commits] [git/LaTeX3-latex3-l3build] master: tag() needs to allow for a table as argument (ab6978a)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Aug 4 18:57:15 CEST 2018


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/ab6978a6bd432caa9586ee0f8a4bbd36a05a330a

>---------------------------------------------------------------

commit ab6978a6bd432caa9586ee0f8a4bbd36a05a330a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Aug 4 17:57:15 2018 +0100

    tag() needs to allow for a table as argument


>---------------------------------------------------------------

ab6978a6bd432caa9586ee0f8a4bbd36a05a330a
 CHANGELOG.md        |    1 +
 l3build-stdmain.lua |    2 +-
 l3build-tagging.lua |    3 ++-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1142fb8..ad2306b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,7 @@ this project uses date-based 'snapshot' version identifiers.
 
 ### Fixed
 - Testing using `.lve` files
+- Tagging with new approach to top-level targets
 
 ## [2018-08-02]
 
diff --git a/l3build-stdmain.lua b/l3build-stdmain.lua
index 8c39da9..6398288 100644
--- a/l3build-stdmain.lua
+++ b/l3build-stdmain.lua
@@ -109,7 +109,7 @@ target_list =
             local errorlevel = call(modules,"tag")
             -- Deal with any files in the bundle dir itself
             if errorlevel == 0 then
-              errorlevel = tag(names[1])
+              errorlevel = tag(names)
             end
             return errorlevel
           end,
diff --git a/l3build-tagging.lua b/l3build-tagging.lua
index 052619d..6ad11e6 100644
--- a/l3build-tagging.lua
+++ b/l3build-tagging.lua
@@ -61,8 +61,9 @@ local function update_file_tag(file,tagname,tagdate)
   return 0
 end
 
-function tag(tagname)
+function tag(tagnames)
   local tagdate = options["date"] or os_date("%Y-%m-%d")
+  local tagname = tagnames[1] or tagdate
   local dirs = remove_duplicates({currentdir, sourcefiledir, docfiledir})
   local errorlevel = 0
   for _,dir in pairs(dirs) do





More information about the latex3-commits mailing list