Updated the Java bindings and docs to support the version status.

This commit is contained in:
Roman Donchenko
2013-09-12 16:39:14 +04:00
parent 473bfb0019
commit b525c28244
2 changed files with 12 additions and 5 deletions

View File

@@ -55,6 +55,7 @@ version_epoch = re.search("^W*#\W*define\W+CV_VERSION_EPOCH\W+(\d+)\W*$", versio
version_major = re.search("^W*#\W*define\W+CV_VERSION_MAJOR\W+(\d+)\W*$", version_file, re.MULTILINE).group(1)
version_minor = re.search("^W*#\W*define\W+CV_VERSION_MINOR\W+(\d+)\W*$", version_file, re.MULTILINE).group(1)
version_patch = re.search("^W*#\W*define\W+CV_VERSION_REVISION\W+(\d+)\W*$", version_file, re.MULTILINE).group(1)
version_status = re.search("^W*#\W*define\W+CV_VERSION_STATUS\W+\"(.*?)\"\W*$", version_file, re.MULTILINE).group(1)
# The short X.Y version.
version = version_epoch + '.' + version_major
@@ -62,6 +63,7 @@ version = version_epoch + '.' + version_major
release = version_epoch + '.' + version_major + '.' + version_minor
if version_patch:
release = release + '.' + version_patch
release += version_status
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.