mirror of
https://git.rtems.org/rtems-docs/
synced 2025-05-15 00:37:09 +08:00
waf: Configure check the inliner only once.
This commit is contained in:
parent
93e52865e2
commit
91d6c96b4c
@ -199,11 +199,13 @@ def cmd_configure(ctx):
|
|||||||
|
|
||||||
ctx.envBUILD_SINGLEHTML = 'no'
|
ctx.envBUILD_SINGLEHTML = 'no'
|
||||||
if ctx.options.singlehtml:
|
if ctx.options.singlehtml:
|
||||||
ctx.env.BUILD_SINGLEHTML = 'yes'
|
check_inliner = not ctx.env.BIN_INLINER
|
||||||
ctx.find_program("inliner", var = "BIN_INLINER", mandatory = False)
|
if check_inliner:
|
||||||
if not ctx.env.BIN_INLINER:
|
ctx.env.BUILD_SINGLEHTML = 'yes'
|
||||||
ctx.fatal("Node inliner is required install with 'npm install -g inliner' " +
|
ctx.find_program("inliner", var = "BIN_INLINER", mandatory = False)
|
||||||
"(https://github.com/remy/inliner)")
|
if not ctx.env.BIN_INLINER:
|
||||||
|
ctx.fatal("Node inliner is required install with 'npm install -g inliner' " +
|
||||||
|
"(https://github.com/remy/inliner)")
|
||||||
|
|
||||||
def doc_pdf(ctx, source_dir, conf_dir):
|
def doc_pdf(ctx, source_dir, conf_dir):
|
||||||
buildtype = 'latex'
|
buildtype = 'latex'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user