shithub: aubio

Download patch

ref: 582010790e2bfa8ee0e388a8875f354406813ffe
parent: d7bce3c38d23d1b861b455171f2b440724d5bca4
author: Paul Brossier <piem@piem.org>
date: Wed Nov 16 12:09:56 EST 2011

wscript: parse VERSION from file

--- 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'