diff build/update-version.sh @ 337:d5c5a52e6c9f

Make the simple base-fft implementation accessible for use by plugins as well. Bump version to 2.4
author Chris Cannam
date Thu, 12 Jul 2012 11:37:31 +0100
parents f9e13bc35b3e
children 3bfc44d26963
line wrap: on
line diff
--- a/build/update-version.sh	Mon Jul 09 22:36:06 2012 +0100
+++ b/build/update-version.sh	Thu Jul 12 11:37:31 2012 +0100
@@ -60,17 +60,35 @@
 $p 's/(age)=.*/$1='$hostminor'/' \
     build/libvamp-hostsdk.la.in
 
+$p 's/(PROJECT_NUMBER[^=]*)=.*/$1= '$version'/' \
+    build/Doxyfile
+
 $p 's/(VAMP_API_VERSION).*/$1 '$major'/' \
     vamp/vamp.h
 
 $p 's/(VAMP_SDK_VERSION) +"[^"]*"/$1 "'$version'"/' \
-    vamp-sdk/PluginBase.h
+    vamp-sdk/plugguard.h
 
 $p 's/(VAMP_SDK_MAJOR_VERSION).*/$1 '$major'/' \
-    vamp-sdk/PluginBase.h
+    vamp-sdk/plugguard.h
 
 $p 's/(VAMP_SDK_MINOR_VERSION).*/$1 '$minor'/' \
-    vamp-sdk/PluginBase.h
+    vamp-sdk/plugguard.h
+
+$p 's/(VAMP_SDK_VERSION) +"[^"]*"/$1 "'$version'"/' \
+    vamp-hostsdk/hostguard.h
+
+$p 's/(VAMP_SDK_MAJOR_VERSION).*/$1 '$major'/' \
+    vamp-hostsdk/hostguard.h
+
+$p 's/(VAMP_SDK_MINOR_VERSION).*/$1 '$minor'/' \
+    vamp-hostsdk/hostguard.h
+
+$p 's/(VAMP_SDK_MAJOR_VERSION !=) [\d\.]+/$1 '$major'/' \
+    src/vamp-sdk/FFT.cpp
+
+$p 's/(VAMP_SDK_MINOR_VERSION !=) [\d\.]+/$1 '$minor'/' \
+    src/vamp-sdk/FFT.cpp
 
 $p 's/(VAMP_SDK_MAJOR_VERSION !=) [\d\.]+/$1 '$major'/' \
     src/vamp-sdk/PluginAdapter.cpp
@@ -88,9 +106,11 @@
     $p 's/(Version:) .*/$1 '$version'/' $pc
 done
 
-$p 's/^$/\nextern void libvampsdk_v_'$acs'_present(void) { }/' \
+fgrep -q 'libvampsdk_v_'$acs'_present' src/vamp-sdk/acsymbols.c || \
+    $p 's/^$/\nextern void libvampsdk_v_'$acs'_present(void) { }/' \
     src/vamp-sdk/acsymbols.c
 
+fgrep -q 'libvamphostsdk_v_'$acs'_present' src/vamp-hostsdk/acsymbols.c || \
 $p 's/^$/\nextern void libvamphostsdk_v_'$acs'_present(void) { }/' \
     src/vamp-hostsdk/acsymbols.c