shithub: aubio

Download patch

ref: ddc9733e3d75fb39f01cfcfffc2bb71336a94cd4
parent: f4dbf64b85d449e833634684c7e47865d3177a27
author: Paul Brossier <piem@piem.org>
date: Fri Apr 7 11:34:41 EDT 2017

this_version.py: add options to get only libaubio or python-aubio version

--- a/this_version.py
+++ b/this_version.py
@@ -98,5 +98,10 @@
     return gitsha
 
 if __name__ == '__main__':
-    print ('%30s'% 'aubio version:', get_aubio_version())
-    print ('%30s'% 'python-aubio version:', get_aubio_pyversion())
+    if len(sys.argv) > 1 and sys.argv[1] == '-v':
+        print (get_aubio_version())
+    elif len(sys.argv) > 1 and sys.argv[1] == '-p':
+        print (get_aubio_version())
+    else:
+        print ('%30s'% 'aubio version:', get_aubio_version())
+        print ('%30s'% 'python-aubio version:', get_aubio_pyversion())