diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-04-08 00:57:47 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-04-08 00:57:47 +0100 |
| commit | 559f1d6fb1cf39ae714e5c8bc9c1c4ac72cf604d (patch) | |
| tree | e62a49932aa8875d584cba3bc04b618d0fe51245 | |
| parent | 96b6e2689b26e41ca1ba760ade3754b365fc9fc2 (diff) | |
Move to tag-versioning.v1.6.0
| -rw-r--r-- | wscript | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -38,7 +38,15 @@ import distutils.spawn from waflib import Logs, Context APPNAME = 'libdcp' -VERSION = '1.5.1devel' + +this_version = subprocess.Popen(shlex.split('git tag -l --points-at HEAD'), stdout=subprocess.PIPE).communicate()[0] +last_version = subprocess.Popen(shlex.split('git describe --tags --abbrev=0'), stdout=subprocess.PIPE).communicate()[0] + +if this_version == '': + VERSION = '%sdevel' % last_version[1:].strip() +else: + VERSION = this_version[1:].strip() + API_VERSION = '-1.0' def options(opt): |
