Mercurial > hg > vamp-build-and-test
view process.sh @ 2:4e4f3903643d
Look for e.g. Makefile.linux64 as well
author | Chris Cannam |
---|---|
date | Thu, 17 Jul 2014 13:05:17 +0100 |
parents | ac47394e6503 |
children | 780c4fc19f3e |
line wrap: on
line source
#!/bin/bash ## Things to test: ## the plugin builds! ## plugin loads ## passes vamp-plugin-tester tests ## does not export any unnecessary symbols ## has valid .cat and .n3 platform=linux bits=64 configure_maybe() { dir="$1" if [ ! -f "$dir/Makefile" ] ; then if [ -f "$dir/configure" ] ; then ( cd "$dir" ; ./configure ) fi fi } find_makefile() { dir="$1" for f in Makefile Makefile.$platform Makefile.$platform$bits build/$platform/Makefile build/$platform/Makefile.$platform build/$platform/Makefile.$platform$bits; do if [ -f "$dir/$f" ]; then echo $f break fi done } for dir in $(cat .hgsub | awk '{ print $1; }') ; do echo echo "Processing: $dir" if configure_maybe "$dir"; then mfile=$(find_makefile "$dir") if [ -n "$mfile" ]; then make -C "$dir" -f "$mfile" else echo "Failed to find a Makefile in $dir" fi fi done