From 582010790e2bfa8ee0e388a8875f354406813ffe Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 16 Nov 2011 17:09:56 -0800 Subject: [PATCH] wscript: parse VERSION from file --- wscript | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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' -- 2.26.2