[latex3-commits] [git/LaTeX3-latex3-l3build] master: Enable passing of tag/version as optional arg to upload (df2f722)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Dec 20 23:53:37 CET 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/df2f722e86dbfd4bdbb1b7cd0061e2d69859e255
>---------------------------------------------------------------
commit df2f722e86dbfd4bdbb1b7cd0061e2d69859e255
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Dec 20 22:53:37 2018 +0000
Enable passing of tag/version as optional arg to upload
>---------------------------------------------------------------
df2f722e86dbfd4bdbb1b7cd0061e2d69859e255
CHANGELOG.md | 1 +
l3build-upload.lua | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bd9af6c..b6121ec 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@ this project uses date-based 'snapshot' version identifiers.
### Changed
- Enable `--dry-run` option for `upload` target
+- Enable tag/version to be passed as optional argument to `upload` target
### Fixed
diff --git a/l3build-upload.lua b/l3build-upload.lua
index c3bb6c2..f7fb303 100644
--- a/l3build-upload.lua
+++ b/l3build-upload.lua
@@ -75,7 +75,7 @@ end
-- if upload is anything else, the user will be prompted whether to upload.
-- For now, this is undocumented. I think I would prefer to keep it always set to ask for the time being.
-function upload()
+function upload(tagnames)
local uploadfile = ctanzip..".zip"
@@ -91,6 +91,8 @@ function upload()
end
uploadconfig.announcement = options["message"] or uploadconfig.announcement
+ local uploadconfig.version = tagnames[1] or uploadconfig.version
+
-- start building the curl command:
ctan_post = curlexe .. " "
More information about the latex3-commits
mailing list