Commit 8c44d5b3 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Also provide the program version



Conceptionally, the versions of the program, the protocols, and the
configuration are three different things, even though, currently there
is a tight coupling. So export the version as well, as the upgrades
are designed to make decisions based on the version.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarJose Lopes <jabolopes@google.com>
parent 1eda3dd3
......@@ -44,6 +44,10 @@ VCS_VERSION = _vcsversion.VCS_VERSION
EXPORT_VERSION = 0
RAPI_VERSION = 2
VERSION_MAJOR = _constants.VERSION_MAJOR
VERSION_MINOR = _constants.VERSION_MINOR
VERSION_REVISION = _constants.VERSION_REVISION
CONFIG_MAJOR = _constants.CONFIG_MAJOR
CONFIG_MINOR = _constants.CONFIG_MINOR
CONFIG_REVISION = _constants.CONFIG_REVISION
......
......@@ -119,6 +119,15 @@ gntScripts = AutoConf.gntScripts
releaseVersion :: String
releaseVersion = AutoConf.packageVersion
versionMajor :: Int
versionMajor = AutoConf.versionMajor
versionMinor :: Int
versionMinor = AutoConf.versionMinor
versionRevision :: Int
versionRevision = AutoConf.versionRevision
configMajor :: Int
configMajor = AutoConf.versionMajor
......
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