summaryrefslogtreecommitdiffstats
path: root/scripts/sphinx-pre-install
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2021-04-16 00:01:50 +0200
committerJonathan Corbet <corbet@lwn.net>2021-04-16 00:01:50 +0200
commite9dfeed2518671e94779a6103301cded67fae0e2 (patch)
tree98d38dd391642a48bc96fd35dc0a227247c9a14a /scripts/sphinx-pre-install
parentscripts: kernel-doc: improve parsing for kernel-doc comments syntax (diff)
downloadlinux-e9dfeed2518671e94779a6103301cded67fae0e2.tar.xz
linux-e9dfeed2518671e94779a6103301cded67fae0e2.zip
docs: sphinx-pre-install: don't barf on beta Sphinx releases
sphinx-pre-install is picky when it comes to parsing sphinx versions; it failed when run with sphinx 4.0.0b1. Tweak the regex to tolerate a trailing "bN" on the version number. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/sphinx-pre-install')
-rwxr-xr-xscripts/sphinx-pre-install2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install
index b5f9fd5b2880..fe92020d67e3 100755
--- a/scripts/sphinx-pre-install
+++ b/scripts/sphinx-pre-install
@@ -259,7 +259,7 @@ sub get_sphinx_version($)
open IN, "$cmd --version 2>&1 |";
while (<IN>) {
- if (m/^\s*sphinx-build\s+([\d\.]+)(\+\/[\da-f]+)?$/) {
+ if (m/^\s*sphinx-build\s+([\d\.]+)((\+\/[\da-f]+)|(b\d+))?$/) {
$ver=$1;
last;
}