[Enhancement] Added --version flag

Change-Id: I4f90673ce4855ada405c4e93c9f4c2c08707e6fe
Fix: bz#1011691
This commit is contained in:
Francesco Vollero
2014-01-20 17:01:20 +01:00
parent b925471df2
commit db71879e94
3 changed files with 10 additions and 5 deletions

View File

@@ -1,11 +1,14 @@
VERSION = ['2013', '2', '1']
VERSION = ['2014', '1', '1']
FINAL=False
RELEASE="Icehouse"
SNAPTAG=None
def release_string():
return RELEASE
def version_string():
if FINAL:
return '.'.join(filter(None, VERSION))
else:
return '.'.join(filter(None, VERSION))+"dev"
return '.'.join(filter(None, VERSION))+"dev{0}".format(SNAPTAG)