summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-03-15 15:03:10 +1100
committerChris Johns <chrisj@rtems.org>2017-03-15 15:03:10 +1100
commit91d6c96b4cb8fbde4d6c38deb7c5cc6ae308e30f (patch)
tree7e139735b61f3eed47dcadd8703b37c2de0278e0
parent93e52865e28d062de12d3769d6bc75b5ade3f36c (diff)
downloadrtems-docs-91d6c96b4cb8fbde4d6c38deb7c5cc6ae308e30f.tar.bz2
waf: Configure check the inliner only once.
-rw-r--r--common/waf.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/common/waf.py b/common/waf.py
index ad75ed5..a86737b 100644
--- a/common/waf.py
+++ b/common/waf.py
@@ -199,11 +199,13 @@ def cmd_configure(ctx):
ctx.envBUILD_SINGLEHTML = 'no'
if ctx.options.singlehtml:
- ctx.env.BUILD_SINGLEHTML = 'yes'
- ctx.find_program("inliner", var = "BIN_INLINER", mandatory = False)
- if not ctx.env.BIN_INLINER:
- ctx.fatal("Node inliner is required install with 'npm install -g inliner' " +
- "(https://github.com/remy/inliner)")
+ check_inliner = not ctx.env.BIN_INLINER
+ if check_inliner:
+ ctx.env.BUILD_SINGLEHTML = 'yes'
+ ctx.find_program("inliner", var = "BIN_INLINER", mandatory = False)
+ 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):
buildtype = 'latex'