diff options
author | Karl Berry <karl@freefriends.org> | 2018-08-04 20:54:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-08-04 20:54:38 +0000 |
commit | e701677aa361258a69f40dad5187444352c6e14b (patch) | |
tree | b4ff67b9a9fe0330e3f30b2d4a83acee43730681 /Master/texmf-dist/scripts/l3build/l3build-tagging.lua | |
parent | b37c9b96f81e82408f83040ed006fb21a236538e (diff) |
l3build (4aug18)
git-svn-id: svn://tug.org/texlive/trunk@48348 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/l3build/l3build-tagging.lua')
-rw-r--r-- | Master/texmf-dist/scripts/l3build/l3build-tagging.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/l3build/l3build-tagging.lua b/Master/texmf-dist/scripts/l3build/l3build-tagging.lua index 9a6f8cf5014..6ad11e68943 100644 --- a/Master/texmf-dist/scripts/l3build/l3build-tagging.lua +++ b/Master/texmf-dist/scripts/l3build/l3build-tagging.lua @@ -28,7 +28,7 @@ local os_date = os.date local match = string.match local gsub = string.gsub -function update_tag(filename,content,tagname,tagdate) +update_tag = update_tag or function(filename,content,tagname,tagdate) return content end @@ -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 |