[latex3-commits] [git/l3build] master: Simplify ctan() function (fb94065)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Dec 25 10:52:10 CET 2017


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

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

commit fb9406588e8fc63f1c0908e250e82ca75fc94faf
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Dec 25 09:52:10 2017 +0000

    Simplify ctan() function
    
    Looking forward to making the targets into a table: it will help if the
    argument form is fixed (a single one for the table of 'files').


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

fb9406588e8fc63f1c0908e250e82ca75fc94faf
 l3build.lua |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/l3build.lua b/l3build.lua
index 207eca5..a3ef35a 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -1968,7 +1968,7 @@ function bundleclean()
   )
 end
 
-function ctan(standalone)
+function ctan()
   -- Always run tests for all engines
   options["engine"] = nil
   local function dirzip(dir, name)
@@ -2000,6 +2000,10 @@ function ctan(standalone)
     )
   end
   local errorlevel
+  local standalone = false
+  if bundle == "" then
+    standalone = true
+  end
   if standalone then
     errorlevel = check()
     bundle = module
@@ -2461,8 +2465,8 @@ function stdmain(target, files)
       errorlevel = check(files)
     elseif target == "clean" then
       errorlevel = clean()
-    elseif target == "ctan" and bundle == "" then  -- Stand-alone module
-      errorlevel = ctan(true)
+    elseif target == "ctan" then
+      errorlevel = ctan()
     elseif target == "install" then
       errorlevel = install()
     elseif target == "save" then





More information about the latex3-commits mailing list