[latex3-commits] [git/LaTeX3-latex3-l3build] master: first cut at l3build integration (b4867d6)

Will Robertson will at wspr.io
Tue Dec 18 13:45:20 CET 2018


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

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

commit b4867d627f067022153825166911958ed1a1019c
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sat Jul 21 22:43:58 2018 +0100

    first cut at l3build integration


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

b4867d627f067022153825166911958ed1a1019c
 build.lua             |    2 ++
 l3build-ctan-post.lua |   13 +++++++++++--
 l3build.lua           |    1 +
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/build.lua b/build.lua
index 27ee3e9..5c48f58 100644
--- a/build.lua
+++ b/build.lua
@@ -60,6 +60,8 @@ function tag_hook(tagname)
   os.execute('git tag -a -m "" ' .. tagname)
 end
 
+require("z")
+
 if not release_date then
   dofile("./l3build.lua")
 end
\ No newline at end of file
diff --git a/l3build-ctan-post.lua b/l3build-ctan-post.lua
index 87ef264..0d4a195 100644
--- a/l3build-ctan-post.lua
+++ b/l3build-ctan-post.lua
@@ -49,15 +49,24 @@ for those people who are interested.
 -- the main interface is
 -- ctan_upload (c,upload)
 -- with a configuration table c and optional upload parameter
--- if upload is omitted or nil or false, onloy validation is attempted
+-- if upload is omitted or nil or false, only validation is attempted
 -- if upload is true the ctan upload URL will be used  after validation
--- if upload is anything else, the user will beprompted whether to upload.
+-- if upload is anything else, the user will be prompted whether to upload.
 
 local ctan_post_command = ctan_post_command or "curl"
 local curl_debug=false -- posting is disabled while testing
+local ctanconfig = ctanconfig or {}
+local ctanupload= ctanupload or "ask"
 
 function ctan_upload (c,upload)
 
+if type(c) ~= "table" then
+  print ("No ctan upload configuration found.")
+  return 1
+end
+
+print ("ZZZ" .. upload)
+
   c.cfg=ctan_post_command .. " "
 
 
diff --git a/l3build.lua b/l3build.lua
index e40b8e6..951aa26 100755
--- a/l3build.lua
+++ b/l3build.lua
@@ -60,6 +60,7 @@ build_require("aux")
 build_require("clean")
 build_require("check")
 build_require("ctan")
+build_require("ctan-post")
 build_require("install")
 build_require("unpack")
 build_require("manifest")





More information about the latex3-commits mailing list