[rtems-docs commit] Fix the bibtex extension configure test

Chris Johns chrisj at rtems.org
Fri May 21 04:47:36 UTC 2021


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

Author:    Chris Johns <chrisj at rtems.org>
Date:      Mon May 10 11:58:45 2021 +1000

Fix the bibtex extension configure test

---

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

diff --git a/common/waf.py b/common/waf.py
index 3806209..fa9aecb 100644
--- a/common/waf.py
+++ b/common/waf.py
@@ -181,10 +181,12 @@ def check_sphinx_extension(ctx, extension):
     def run_sphinx(bld):
         rst_node = bld.srcnode.make_node('testbuild/contents.rst')
         rst_node.parent.mkdir()
-        rst_node.write('.. COMMENT test sphinx\n')
+        rst_node.write('.. COMMENT test sphinx' + os.linesep)
         bib_node = bld.srcnode.make_node('testbuild/refs.bib')
+        bib_node.write(os.linesep)
         conf_node = bld.srcnode.make_node('testbuild/conf.py')
-        conf_node.write("bibtex_bibfiles = ['refs.bib']\n")
+        conf_node.write(os.linesep.join(["master_doc='contents'",
+                                         "bibtex_bibfiles = ['refs.bib']"]))
         bld(rule = bld.kw['rule'], source = rst_node)
 
     ctx.start_msg("Checking for '%s'" % (extension))



More information about the vc mailing list