aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_vimdoc.py
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-02 10:58:40 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-02 10:58:40 +0200
commit649cdc14ba1f352c14179bd177f6156bd322cbed (patch)
tree4a6d0a32fc05e809d46aac5bf877e9c2d23d6ca5 /scripts/gen_vimdoc.py
parenta23440bf7cf5102f18092bb4239c198e217bf928 (diff)
downloadrneovim-649cdc14ba1f352c14179bd177f6156bd322cbed.tar.gz
rneovim-649cdc14ba1f352c14179bd177f6156bd322cbed.tar.bz2
rneovim-649cdc14ba1f352c14179bd177f6156bd322cbed.zip
ci(gen_vimdoc): handle edge case when checking doxygen version
When checking the version of the doxygen installed from conda the output has the following format: 1.9.2 (ee54ebd4f0ad83d9c44f19a459146de64d0ffba2*) This would cause an error in the "Missing API docs" CI job. This fix will correctly parse the doxygen version for both stable releases ("1.9.2") as well as the version with the git commit hash attached.
Diffstat (limited to 'scripts/gen_vimdoc.py')
-rwxr-xr-xscripts/gen_vimdoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_vimdoc.py b/scripts/gen_vimdoc.py
index 8d38382405..101f0cf5ff 100755
--- a/scripts/gen_vimdoc.py
+++ b/scripts/gen_vimdoc.py
@@ -60,7 +60,7 @@ if sys.version_info < MIN_PYTHON_VERSION:
sys.exit(1)
doxygen_version = tuple([int(i) for i in subprocess.check_output(["doxygen", "-v"],
- universal_newlines=True).split('.')])
+ universal_newlines=True).split()[0].split('.')])
if doxygen_version < MIN_DOXYGEN_VERSION:
print("requires Doxygen {}.{}.{}+".format(*MIN_DOXYGEN_VERSION))