#!/bin/bash
# 2012-Nov-05: Updated sandbox binary. This comment
#   should make the script installed test fail.

COUNT=`find . -name Makefile | wc -l`

if [[ $COUNT -ne 1 ]]
then
    echo "Too many Makefiles in the directory tree."
    exit 
fi

find . -name "Makefile" -exec bash -c '(cd `dirname {}` && make test)' \;

#!/bin/bash

COUNT=`find . -name Makefile | wc -l`

if [[ $COUNT -ne 1 ]]
then
    echo "Need exactly 1 Makefile in directory tree."
    echo "Found $COUNT instead, giving up."
    exit 
fi

find . -name "Makefile" -exec bash -c '(cd `dirname {}` && make test)' \;

Improve error message for misplaced Makefiles
Improve error message for misplaced Makefiles
