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

@@ -86,6 +86,9 @@ def build(ctx):
ctx.env.DATE = ver_date
ctx.env.RELEASE = ver_version + ' (' + ver_date + ')'
ctx.env.VERSION = ver_version
ctx.env.RTEMS_MAJOR = version.major()
ctx.env.RTEMS_MINOR = version.minor()
ctx.env.RTEMS_REVISION = version.revision()
ctx.to_log('Build: %s%s' % (ctx.env.RELEASE, os.linesep))
#