[PATCH 2/2] Fix the bibtex extension configure test

chrisj at rtems.org chrisj at rtems.org
Thu May 20 22:14:57 UTC 2021


From: Chris Johns <chrisj at rtems.org>

---
 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))
-- 
2.24.3 (Apple Git-128)



More information about the devel mailing list