[latex3-commits] [l3svn] branch master updated: l3build: Add a -q option/reduce logging for dependencies

noreply at latex-project.org noreply at latex-project.org
Thu Sep 24 14:36:48 CEST 2015


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

The following commit(s) were added to refs/heads/master by this push:
       new  4b4970b   l3build: Add a -q option/reduce logging for dependencies
4b4970b is described below

commit 4b4970b98e6e9487edb9197e7f3588ebfef2655a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Sep 24 13:35:43 2015 +0100

    l3build: Add a -q option/reduce logging for dependencies
    
    As dependencies should be tested before anything using them,
    there's not so much need to show all of the DocStrip stuff.
    A new option is added here that keeps the main output but
    reduces this extraneous part.
---
 l3build/l3build.dtx |    1 +
 l3build/l3build.lua |   13 +++++++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/l3build/l3build.dtx b/l3build/l3build.dtx
index 6c3c797..b42a340 100644
--- a/l3build/l3build.dtx
+++ b/l3build/l3build.dtx
@@ -316,6 +316,7 @@
 % \item \texttt{--halt-on-error} (\texttt{-H}) Specifies that checks
 %   should stop as soon as possible, rather than running all requested
 %   tests
+% \item \texttt{--quiet} (\texttt{-q}) Suppresses output from unpacking
 % \end{itemize}
 %
 % \begin{buildcmd}{check}
diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index 6c6894c..027e435 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -170,19 +170,22 @@ function argparse()
       engine              = "engine",
       ["halt-on-error"]   = "halt"  ,
       ["halt-on-failure"] = "halt"  ,
-      help                = "help"
+      help                = "help"  ,
+      quiet               = "quiet"
     }
   local short_options =
     {
       e = "engine",
       h = "help"  ,
-      H = "halt"
+      H = "halt"  ,
+      q = "quiet"
     }
   local option_args =
     {
       engine = true ,
       halt   = false,
-      help   = false
+      help   = false,
+      quiet  = false
     }
   -- arg[1] is a special case: must be a command or "-h"/"--help"
   -- Deal with this by assuming help and storing only apparently-valid
@@ -290,6 +293,7 @@ userargs = argparse()
 optengines = userargs["engine"]
 opthalt    = userargs["halt"]
 opthelp    = userargs["help"]
+optquiet   = userargs["quiet"]
 
 -- Convert a file glob into a pattern for use by e.g. string.gub
 -- Based on https://github.com/davidm/lua-glob-pattern
@@ -674,7 +678,7 @@ end
 function depinstall(deps)
   for _,i in ipairs(deps) do
     print("Installing dependency: " .. i)
-    run(i, "texlua " .. scriptname .. " unpack")
+    run(i, "texlua " .. scriptname .. " unpack -q")
   end
 end
 
@@ -1628,6 +1632,7 @@ bundleunpack = bundleunpack or function(sourcedir)
         os_concat ..
         unpackexe .. " " .. unpackopts .. " " .. j .. " < "
           .. localdir .. "/yes"
+          .. (optquiet and (" > " .. os_null) or "")
       )
     end
   end

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list