[latex3-commits] [git/LaTeX3-latex3-l3build] ctan-post: access email from git config, perhaps should have a wrapper function to provide easier interface for that (969618c)

David Carlisle d.p.carlisle at gmail.com
Sun Aug 5 10:19:38 CEST 2018


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

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

commit 969618c4ce08ca6b86796c95d7a5aaeb088693a2
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sun Aug 5 09:19:38 2018 +0100

    access email from git config, perhaps should have a wrapper function to provide easier interface for that


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

969618c4ce08ca6b86796c95d7a5aaeb088693a2
 build.lua |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/build.lua b/build.lua
index 09d113f..7fb57cc 100644
--- a/build.lua
+++ b/build.lua
@@ -53,7 +53,17 @@ end
 ctan_pkg="l3build"
 ctan_version=[[2018/05/20]]
 ctan_author=[[latex3 project]]
-ctan_email='me at example.com'
+
+
+-- 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"





More information about the latex3-commits mailing list