Bump libsub.
[dcpomatic.git] / wscript
diff --git a/wscript b/wscript
index 2583d400af6e5f13e31cd4eec0a658d7b0db3860..c48cdcff9854a8e2547447cc9d614d25399a5ade 100644 (file)
--- a/wscript
+++ b/wscript
@@ -29,19 +29,19 @@ from waflib import Logs, Context
 APPNAME = 'dcpomatic'
 
 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 --abbrev=0'), 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()
 
-print 'Version: %s' % VERSION
+print('Version: %s' % VERSION)
 
 def options(opt):
     opt.load('compiler_cxx')
     opt.load('winres')
-    
+
     opt.add_option('--enable-debug',      action='store_true', default=False, help='build with debugging information and without optimisation')
     opt.add_option('--disable-gui',       action='store_true', default=False, help='disable building of GUI tools')
     opt.add_option('--disable-tests',     action='store_true', default=False, help='disable building of tests')