Merge tag 'for-5.6-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[linux-block.git] / scripts / sphinx-pre-install
index 470ccfe678aa7ced5ab97639c87c5d3914946229..a8f0c002a34058f99de455f045f61fa5a6b28b4b 100755 (executable)
@@ -272,7 +272,7 @@ sub check_sphinx()
 
        open IN, "$sphinx --version 2>&1 |" or die "$sphinx returned an error";
        while (<IN>) {
-               if (m/^\s*sphinx-build\s+([\d\.]+)$/) {
+               if (m/^\s*sphinx-build\s+([\d\.]+)(\+\/[\da-f]+)?$/) {
                        $cur_version=$1;
                        last;
                }