waf: Get the version numbers from the version file.

This commit is contained in:
Chris Johns
2020-03-12 16:34:16 +11:00
parent 7b53b604c5
commit 19af6b47d5
4 changed files with 43 additions and 5 deletions

View File

@@ -1,7 +1,10 @@
import version as rtems_version
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.coverage",
"sphinx.ext.doctest",
"sphinx.ext.extlinks",
"sphinx.ext.graphviz",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
@@ -9,6 +12,8 @@ extensions = [
"rtemsdomain",
]
extlinks = {'release_path': ('https://ftp.rtems.org/pub/rtems/releases', None) }
# Add any paths that contain templates here, relative to this directory.
#templates_path = ['build/_templates']
@@ -23,17 +28,21 @@ master_doc = 'index'
# General information about the project.
project = u'RTEMS Documentation Project'
copyright = u'1988, 2019 RTEMS Project and contributors'
copyright = u'1988, 2020 RTEMS Project and contributors'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
#version = '@VERSION@'
version = rtems_version.version()
# The full version, including alpha/beta/rc tags.
#release = '@RELEASE@'
release = rtems_version.string()
major = rtems_version.major()
minor = rtems_version.minor()
revision = rtems_version.revision()
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.