Commit 1944c826 authored by Max Kellermann's avatar Max Kellermann

doc/conf.py: fix version regular expression

Commit 44ef34db was broken.
parent 619bb60b
...@@ -40,7 +40,8 @@ author = 'Max Kellermann' ...@@ -40,7 +40,8 @@ author = 'Max Kellermann'
# The short X.Y version. # The short X.Y version.
with open('../meson.build') as f: with open('../meson.build') as f:
import re import re
version = re.match(r".*version:\s*'([^']+)'", f.readline()).group(1) version = re.match(r"project\([^\)]*\bversion:\s*'([^']+)'",
f.read(4096)).group(1)
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
#release = version + '~git' #release = version + '~git'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment