From df5c261362ec2c8d3d689b9cb0a05fde0ec1b99f Mon Sep 17 00:00:00 2001 From: "David B. Kinder" Date: Fri, 9 Mar 2018 07:35:54 -0800 Subject: [PATCH] doc: update display of RC version Change display of RC_VERSION on documents to be vMAJOR_VERSION.MINOR_VERSION-rcRC_VERSION if RC_VERSION is non-zero, otherwise only vMAJOR_VERSION.MINOR_VERSION Signed-off-by: David B. Kinder --- doc/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index f3c31f34d..c97479c38 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -77,7 +77,9 @@ except: pass finally: if version_major and version_minor and version_rc : - version = release = "v " + version_major + '.' + version_minor + '.' + version_rc + version = release = "v " + version_major + '.' + version_minor + if int(version_rc) > 0 : + version = release = version + '-rc' + version_rc else: sys.stderr.write('Warning: Could not extract hypervisor version from Makefile\n') version = release = "unknown"