Bump version
[dcpomatic.git] / wscript
diff --git a/wscript b/wscript
index c5134f3c29ef1ed81f76e800cad4d4ab84933779..2c714e64e0485038e72a4baf242241e7fc877615 100644 (file)
--- a/wscript
+++ b/wscript
@@ -27,7 +27,16 @@ import distutils.spawn
 from waflib import Logs, Context
 
 APPNAME = 'dcpomatic'
-VERSION = '2.13.0devel'
+
+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 = '2.13.2'
+
+print('Version: %s' % VERSION)
 
 def options(opt):
     opt.load('compiler_cxx')
@@ -54,6 +63,7 @@ def options(opt):
 
 def configure(conf):
     conf.load('compiler_cxx')
+    conf.load('clang_compilation_database', tooldir=['waf-tools'])
     if conf.options.target_windows:
         conf.load('winres')