]> git.baikalelectronics.ru Git - kernel.git/commit
Allow git builds of Sphinx
authorStephen Kitt <steve@sk2.org>
Fri, 24 Jan 2020 18:33:16 +0000 (19:33 +0100)
committerJonathan Corbet <corbet@lwn.net>
Wed, 5 Feb 2020 17:33:44 +0000 (10:33 -0700)
commit1dbd98d4c2b94c859b0cad28d9120a7d7b7bf4b3
tree249e787e6715ad08c0073dbfbbf5d9745370b004
parent4f144a6692752abd9dee8498aba475c996a0cb67
Allow git builds of Sphinx

When using a non-release version of Sphinx, from a local build (with
improvements for kernel doc handling, why not),

sphinx-build --version

reports versions of the form

sphinx-build 3.0.0+/2acc79f58ff2

i.e. base version, a plus symbol, slash, and the start of the git hash
of whatever repository the command is run in (no, not the hash that
was used to build Sphinx!).

This patch fixes the installation check in sphinx-pre-install to
recognise such version output.

Signed-off-by: Stephen Kitt <steve@sk2.org>
Link: https://lore.kernel.org/r/20200124183316.1719218-1-steve@sk2.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/sphinx-pre-install