[latex3-commits] [git/LaTeX3-latex3-l3build] master: allow curl option file name to be set in the uploadconfig table (4986e9b)

David Carlisle d.p.carlisle at gmail.com
Sun Feb 10 11:11:43 CET 2019


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

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

commit 4986e9b9544debc91b4fed2896a0b5e4a83d3d53
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sun Feb 10 10:11:43 2019 +0000

    allow curl option file name to be set in the uploadconfig table


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

4986e9b9544debc91b4fed2896a0b5e4a83d3d53
 l3build-upload.lua |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/l3build-upload.lua b/l3build-upload.lua
index 4256ed0..de1899a 100644
--- a/l3build-upload.lua
+++ b/l3build-upload.lua
@@ -121,12 +121,13 @@ function upload(tagnames)
 
 
 -- curl file version
-  local curlopt=open(ctanzip .. ".curlopt","w")
+  local curloptfile = uploadconfig.curlopt_file or (ctanzip .. ".curlopt")
+  local curlopt=open(curloptfile,"w")
   output(curlopt)
   write(ctan_post)
   close(curlopt)
   
-  ctan_post=curlexe .. " --config " .. ctanzip .. ".curlopt"
+  ctan_post=curlexe .. " --config " .. curloptfile
   
 
 if options["debug"] then





More information about the latex3-commits mailing list