From: Paul Brossier Date: Thu, 17 Nov 2011 01:09:56 +0000 (-0800) Subject: wscript: parse VERSION from file X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=582010790e2bfa8ee0e388a8875f354406813ffe;p=aubio.git wscript: parse VERSION from file --- diff --git a/wscript b/wscript index 669a0c96..417ec2ff 100644 --- a/wscript +++ b/wscript @@ -12,8 +12,15 @@ # - tests: move to new unit test system APPNAME = 'aubio' -VERSION = '0.3.3' -LIB_VERSION = '2.1.1' + +# read from VERSION +for l in open('VERSION').readlines(): exec (l.strip()) + +VERSION = '.'.join \ + ([str(x) for x in [AUBIO_MAJOR_VERSION, AUBIO_MINOR_VERSION, AUBIO_PATCH_VERSION]]) \ + + AUBIO_VERSION_STATUS +LIB_VERSION = '.'.join \ + ([str(x) for x in [LIBAUBIO_LT_CUR, LIBAUBIO_LT_REV, LIBAUBIO_LT_AGE]]) top = '.' out = 'build'