[latex3-commits] [git/LaTeX3-latex3-l3build] ctan-post: update build.lua with new stuff (5ffbf58)

Will Robertson wspr81 at gmail.com
Tue Dec 18 13:19:58 CET 2018


Repository : https://github.com/latex3/l3build
On branch  : ctan-post
Link       : https://github.com/latex3/l3build/commit/5ffbf58782fe360405b62b9036abcf0a8899e503

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

commit 5ffbf58782fe360405b62b9036abcf0a8899e503
Author: Will Robertson <wspr81 at gmail.com>
Date:   Tue Dec 18 22:49:58 2018 +1030

    update build.lua with new stuff


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

5ffbf58782fe360405b62b9036abcf0a8899e503
 build.lua |   61 ++++++++++++++++++++++++-------------------------------------
 1 file changed, 24 insertions(+), 37 deletions(-)

diff --git a/build.lua b/build.lua
index 54cc0f0..d594205 100644
--- a/build.lua
+++ b/build.lua
@@ -18,7 +18,25 @@ scriptmanfiles = {"l3build.1"}
 sourcefiles  = {"*.dtx", "l3build*.lua", "*.ins"}
 typesetcmds  = "\\AtBeginDocument{\\DisableImplementation}"
 unpackdeps   = { }
-tagfiles     = {"l3build.1", "l3build.dtx", "*.md", "l3build.lua"}
+tagfiles     = {"l3build.1", "l3build.dtx", "*.md", "l3build.lua", "build.lua"}
+
+uploadconfig = {
+  version     = "2018-12-17",
+  author      = "The LaTeX Team",
+  license     = "lppl1.3c",
+  summary     = "A testing and building system for (La)TeX",
+  topics      = {"Macro support", "Package development"},
+  ctanPath    = "/macros/latex/contrib/l3build",
+  repository  = "https://github.com/latex3/l3build/",
+  bugtracker  = "https://github.com/latex3/l3build/issues",
+  description = [[
+The build system supports testing and building (La)TeX code, on
+Linux, macOS, and Windows systems. The package offers:
+* A unit testing system for (La)TeX code;
+* A system for typesetting package documentation; and
+* An automated process for creating CTAN releases.
+  ]]
+}
 
 -- Detail how to set the version automatically
 function update_tag(file,content,tagname,tagdate)
@@ -47,6 +65,11 @@ function update_tag(file,content,tagname,tagdate)
     return string.gsub(content,
       "\nRelease " .. iso .. "\n",
       "\nRelease " .. tagname .. "\n")
+  elseif string.match(file, "build.lua$") then
+    return string.gsub(content,
+      '\n  version     = "' .. iso .. '",\n',
+      '\n  version     = "' .. tagdate .. '",\n',
+      )
   elseif string.match(file, "%.lua$") then
     return string.gsub(content,
       '\nrelease_date = "' .. iso .. '"\n',
@@ -60,42 +83,6 @@ function tag_hook(tagname)
   os.execute('git tag -a -m "" ' .. tagname)
 end
 
-
--- ctan upload settings
-ctan_pkg="l3build"
-ctan_version=[[2018/05/20]]
-ctan_author=[[latex3 project]]
-
-
--- ctan_email='me at example.com'
-
--- some people may not want to reveal email in checked in files
--- email (or other fields) may be set by suitable function, eg
-local handle = io.popen('git config user.email')
-ctan_email = string.gsub(handle:read("*a"),'%s*$','')
-handle:close()
-
-
-ctan_uploader=[[me]]
-ctan_ctanPath=[[]]
-ctan_license="lppl"
-
--- ctan_sumary  is mandatory: not setting it will trigger interaction
-
-ctan_announcement='ask'  -- this is optional: setting it to "ask" forces interaction
-
-ctan_update=true
-
-ctan_note=[[
-this
-is
-a note
-just to myself
-]]
-
-
--- end of ctan upload settings
-
 if not release_date then
   dofile("./l3build.lua")
 end





More information about the latex3-commits mailing list