common: use bibtex_bibfiles for newer bibtex

Closes #4229.
This commit is contained in:
Gedare Bloom 2021-02-03 10:24:09 -07:00
parent a60c5b4b3e
commit 4563bb6a8b
2 changed files with 6 additions and 1 deletions

View File

@ -12,6 +12,8 @@ extensions = [
"rtemsdomain", "rtemsdomain",
] ]
bibtex_bibfiles = ['../common/refs.bib']
extlinks = {'release_path': ('https://ftp.rtems.org/pub/rtems/releases', None) } extlinks = {'release_path': ('https://ftp.rtems.org/pub/rtems/releases', None) }
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.

View File

@ -182,12 +182,15 @@ def check_sphinx_extension(ctx, extension):
rst_node = bld.srcnode.make_node('testbuild/contents.rst') rst_node = bld.srcnode.make_node('testbuild/contents.rst')
rst_node.parent.mkdir() rst_node.parent.mkdir()
rst_node.write('.. COMMENT test sphinx\n') 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) bld(rule = bld.kw['rule'], source = rst_node)
ctx.start_msg("Checking for '%s'" % (extension)) ctx.start_msg("Checking for '%s'" % (extension))
try: try:
ctx.run_build(fragment = 'xx', 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, build_fun = run_sphinx,
env = ctx.env) env = ctx.env)
except ctx.errors.ConfigurationError: except ctx.errors.ConfigurationError: