[rtems-docs commit] common: use bibtex_bibfiles for newer bibtex

Gedare Bloom gedare at rtems.org
Thu Feb 18 20:03:44 UTC 2021


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

Author:    Gedare Bloom <gedare at rtems.org>
Date:      Wed Feb  3 10:24:09 2021 -0700

common: use bibtex_bibfiles for newer bibtex

Closes #4229.

---

 common/conf.py | 2 ++
 common/waf.py  | 5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/common/conf.py b/common/conf.py
index 8fb06db..a652e2a 100644
--- a/common/conf.py
+++ b/common/conf.py
@@ -12,6 +12,8 @@ extensions = [
 	"rtemsdomain",
 ]
 
+bibtex_bibfiles = ['../common/refs.bib']
+
 extlinks = {'release_path': ('https://ftp.rtems.org/pub/rtems/releases', None) }
 
 # Add any paths that contain templates here, relative to this directory.
diff --git a/common/waf.py b/common/waf.py
index 7027eb6..2610235 100644
--- a/common/waf.py
+++ b/common/waf.py
@@ -182,12 +182,15 @@ def check_sphinx_extension(ctx, extension):
         rst_node = bld.srcnode.make_node('testbuild/contents.rst')
         rst_node.parent.mkdir()
         rst_node.write('.. COMMENT test sphinx\n')
+        bib_node = bld.srcnode.make_node('testbuild/refs.bib')
+        conf_node = bld.srcnode.make_node('testbuild/conf.py')
+        conf_node.write("bibtex_bibfiles = ['refs.bib']\n")
         bld(rule = bld.kw['rule'], source = rst_node)
 
     ctx.start_msg("Checking for '%s'" % (extension))
     try:
         ctx.run_build(fragment = 'xx',
-                      rule = "${BIN_SPHINX_BUILD} -b html -D extensions=%s -C . out" % (extension),
+                      rule = "${BIN_SPHINX_BUILD} -b html -D extensions=%s -c . . out" % (extension),
                       build_fun = run_sphinx,
                       env = ctx.env)
     except ctx.errors.ConfigurationError:



More information about the vc mailing list