# General information about the project.
project = u'Knot Resolver'
copyright = u'CZ.NIC labs'
-with open('../../meson.build') as f:
- for line in f:
- match = re.match(r"\s*version\s*:\s*'([^']+)'.*", line)
- if match is not None:
- version = match.groups()[0]
-release = version
+
+with open('../../VERSION') as version_file:
+ release = version_file.read().strip()
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# General information about the project.
project = u'Knot Resolver'
copyright = u'CZ.NIC labs'
-with open('../../meson.build') as f:
- for line in f:
- match = re.match(r"\s*version\s*:\s*'([^']+)'.*", line)
- if match is not None:
- version = match.groups()[0]
-release = version
+
+with open('../../VERSION') as version_file:
+ release = version_file.read().strip()
# Add any Sphinx extension module names here, as strings.
extensions = [
'knot-resolver',
['c', 'cpp'],
license: 'GPLv3+',
- version: '6.4.1',
+ version: files('VERSION'),
default_options: ['c_std=gnu11', 'b_ndebug=true'],
- meson_version: '>=0.53',
+ meson_version: '>=0.57',
)
N_COMMITS=$(git rev-list $VERSION_TAG.. --count)
FULL_VERSION="$VERSION.dev$N_COMMITS+$GIT_HASH"
- # modify and commit meson.build
- sed -i "s/^\(\s*version\s*:\s*'\)\([^']\+\)\('.*\)/\1$FULL_VERSION\3/" meson.build
+ # modify and commit VERSION
+ echo "$FULL_VERSION" > VERSION
- : changed version in meson.build, changes must be committed to git
- git add meson.build >&2
+ : changed VERSION, changes must be committed to git
+ git add VERSION >&2
git commit -m 'DROP: devel version archive' >&2
cleanup() {