Changeset 8f2a4f3 in rtems-docs


Ignore:
Timestamp:
Nov 2, 2016, 1:07:50 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, 5, am, master
Children:
75e787d
Parents:
c29f5bc
Message:

waf: Fix the sphinx verbose option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/waf.py

    rc29f5bc r8f2a4f3  
    6363
    6464def sphinx_verbose(ctx):
    65         return ctx.options.sphinx_verbose
     65        return ' '.join(ctx.env.SPHINX_VERBOSE)
    6666
    6767def cmd_configure(ctx):
     
    7676        ctx.start_msg("Checking if Sphinx is at least %s.%s" % sphinx_min_version)
    7777        ver = check_sphinx_version(ctx, sphinx_min_version)
    78 
    7978        ctx.end_msg("yes (%s)" % ".".join(map(str, ver)))
    8079
     80        ctx.start_msg("Sphinx Verbose: ")
     81        if 'SPHINX_VERBOSE' not in ctx.env:
     82                ctx.env.append_value('SPHINX_VERBOSE', ctx.options.sphinx_verbose)
     83        level = sphinx_verbose(ctx)
     84        if level == '-Q':
     85                level = 'quiet'
     86        ctx.end_msg(level)
    8187
    8288def html_resources(ctx):
Note: See TracChangeset for help on using the changeset viewer.