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

Gedare Bloom gedare at rtems.org
Mon May 10 20:53:58 UTC 2021


ok to both of these. To honor Joel, I'll suggest you should include in
the commit msg a more descriptive notion of what you fixed (i.e.,
"fixed OS neutrality") ;)

On Mon, May 10, 2021 at 11:26 AM <chrisj at rtems.org> wrote:
>
> 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)
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list