[rtems-docs commit] waf: Fix the sphinx verbose option.

Chris Johns chrisj at rtems.org
Wed Nov 2 01:10:07 UTC 2016


Module:    rtems-docs
Branch:    master
Commit:    8f2a4f39599f06cf2f89a2b5761b2ecb566a2c0b
Changeset: http://git.rtems.org/rtems-docs/commit/?id=8f2a4f39599f06cf2f89a2b5761b2ecb566a2c0b

Author:    Chris Johns <chrisj at rtems.org>
Date:      Wed Nov  2 12:07:50 2016 +1100

waf: Fix the sphinx verbose option.

---

 common/waf.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/common/waf.py b/common/waf.py
index 3036939..8782e16 100644
--- a/common/waf.py
+++ b/common/waf.py
@@ -62,7 +62,7 @@ def check_sphinx_version(ctx, minver):
 	return ver
 
 def sphinx_verbose(ctx):
-        return ctx.options.sphinx_verbose
+        return ' '.join(ctx.env.SPHINX_VERBOSE)
 
 def cmd_configure(ctx):
 	ctx.load('tex')
@@ -75,9 +75,15 @@ def cmd_configure(ctx):
 
 	ctx.start_msg("Checking if Sphinx is at least %s.%s" % sphinx_min_version)
 	ver = check_sphinx_version(ctx, sphinx_min_version)
-
 	ctx.end_msg("yes (%s)" % ".".join(map(str, ver)))
 
+        ctx.start_msg("Sphinx Verbose: ")
+        if 'SPHINX_VERBOSE' not in ctx.env:
+                ctx.env.append_value('SPHINX_VERBOSE', ctx.options.sphinx_verbose)
+        level = sphinx_verbose(ctx)
+        if level == '-Q':
+                level = 'quiet'
+        ctx.end_msg(level)
 
 def html_resources(ctx):
 	for dir_name in ["_static", "_templates"]:



More information about the vc mailing list