[latex3-commits] [git/LaTeX3-latex3-l3build] master: New switch --email for upload email (de39090)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Dec 22 10:35:55 CET 2018


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

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

commit de39090dc9e361357b8b733902e6ef4deed89a94
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Dec 22 09:35:55 2018 +0000

    New switch --email for upload email


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

de39090dc9e361357b8b733902e6ef4deed89a94
 CHANGELOG.md          |    1 +
 l3build-arguments.lua |    5 +++++
 l3build-upload.lua    |    1 +
 l3build.dtx           |    4 ++++
 4 files changed, 11 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index b6121ec..e0e04de 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ this project uses date-based 'snapshot' version identifiers.
 
 ### Added
 
+- Switch `--email` for providing upload email address
 - Switch `-m|--message` for providing upload announcement from command line
 - Switch `-F|--file` for providing upload announcement from file
 
diff --git a/l3build-arguments.lua b/l3build-arguments.lua
index 07f38a9..63f7db7 100644
--- a/l3build-arguments.lua
+++ b/l3build-arguments.lua
@@ -57,6 +57,11 @@ option_list =
         desc = "Dry run for install",
         type = "boolean"
       },
+    email =
+      {
+        desc = "Email address of CTAN uploader",
+        type = "string"
+      },
     engine =
       {
         desc  = "Sets the engine(s) to use for running test",
diff --git a/l3build-upload.lua b/l3build-upload.lua
index b768e1e..257e466 100644
--- a/l3build-upload.lua
+++ b/l3build-upload.lua
@@ -92,6 +92,7 @@ function upload(tagnames)
     close(f)
   end
   uploadconfig.announcement = options["message"] or uploadconfig.announcement
+  uploadconfig.email = options["email"] or uploadconfig.email
 
   uploadconfig.version = tagnames[1] or uploadconfig.version
 
diff --git a/l3build.dtx b/l3build.dtx
index 8e78ea1..e2df0de 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -337,6 +337,7 @@
 % \item |--dirty| Skip cleaning up of the test area
 % \item |--dry-run| Runs the \texttt{install} target but does not copy
 %   any files: simply lists those that would be installed
+% \item |--email| Sets the email address for CTAN upload
 % \item |--engine| (|-e|) Sets the engine to use for testing
 % \item |--epoch| Sets the epoch for typesetting and testing
 % \item |--file| (|-F|) Take the upload announcement from the given file
@@ -1301,6 +1302,8 @@
 % in Figure~\ref{fig:uploadconfig}.
 % Note that the \texttt{upload} target will \emph{not} execute the \texttt{ctan} target first.
 %
+% To pass the 
+%
 %
 % \begin{table}[p]
 %   \def\YES{\textbullet}
@@ -1377,6 +1380,7 @@
 %       \var{date}          & String  \\
 %       \var{dirty}         & Boolean \\
 %       \var{dry-run}       & Boolean \\
+%       \var{email}         & String  \\
 %       \var{engine}        & Table   \\
 %       \var{epoch}         & String  \\
 %       \var{file}          & string  \\





More information about the latex3-commits mailing list