diff options
author | Jonathan Corbet <corbet@lwn.net> | 2021-04-15 16:01:50 -0600 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2021-04-15 16:01:50 -0600 |
commit | e9dfeed2518671e94779a6103301cded67fae0e2 (patch) | |
tree | 98d38dd391642a48bc96fd35dc0a227247c9a14a /scripts | |
parent | f9bbc12ccb35ac8b3fa01cec1a19cb523a7707c7 (diff) | |
download | linux-e9dfeed2518671e94779a6103301cded67fae0e2.tar.bz2 |
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')
-rwxr-xr-x | scripts/sphinx-pre-install | 2 |
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; } |