changeset 40:a7005ff33d3c

OS/X build fixes
author Chris Cannam
date Thu, 07 Aug 2014 08:17:36 +0100
parents 12d422dd6992
children ed9f24243b59
files .hgsubstate SCRIPTS/process.sh
diffstat 2 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/.hgsubstate	Wed Aug 06 17:44:04 2014 +0100
+++ b/.hgsubstate	Thu Aug 07 08:17:36 2014 +0100
@@ -1,4 +1,4 @@
-73186ff0e8eb86acbafd0f5c2d5ceacd760e57d0 constant-q-cpp
+361b4f8b7b2dbce9aebec3ff577f5c68f6fbb3ae constant-q-cpp
 acc12b4d54b4ff19eac66c64749d6afb01d1e1e7 match-vamp
 ca32a96c123a2c3f7548e37a8d5f4205632bdd9d mazurka-plugins
 6408759460777522101d3310de8e6852a1a1af61 nnls-chroma
--- a/SCRIPTS/process.sh	Wed Aug 06 17:44:04 2014 +0100
+++ b/SCRIPTS/process.sh	Thu Aug 07 08:17:36 2014 +0100
@@ -96,7 +96,7 @@
 	hostext=
 	valgrind=
 	archflags="-arch i386"
-	identpattern='not known yet' ##!!!
+	identpattern='Mach-O .*i386'
 	;;
     osx64)
 	platform=osx
@@ -108,7 +108,7 @@
 	valgrind=
 	# This is a difficult choice for various reasons... have to ponder
 	archflags="-mmacosx-version-min=10.6 -arch x86_64 -arch i386"
-	identpattern='not known yet' ##!!!
+	identpattern='Mach-O 64-bit .*x86_64'
 	;;
 esac;
 
@@ -260,7 +260,9 @@
 run_tester() {
     ##!!! todo: timeout if the plugin takes too long and report as failure?
     dir="$1"
-    ids=$(VAMP_PATH="$dir" $hostwrapper vamp-plugin-sdk/host/vamp-simple-host$hostext --list-ids | sed 's/^vamp://' | sed 's/\r//g' )
+    # can't use sed to remove \r from DOS line endings -- BSD and GNU
+    # vary in how they interpret \r escape
+    ids=$(VAMP_PATH="$dir" $hostwrapper vamp-plugin-sdk/host/vamp-simple-host$hostext --list-ids | sed 's/^vamp://' | perl -p -e 's/\r//g' )
     cat /dev/null > "$reportdir/$dir.test.txt"
     if [ -z "$ids" ]; then
 	echo