#!/bin/sh
if [ "$1" = "-v" ]; then
	export VERBOSITY=1
else
	export VERBOSITY=0
fi
if test $VERBOSITY -gt 0; then
	echo "Running vrpmake on all subdirectories." 
fi
for X in *; do
	if test -d $X; then
		if test $VERBOSITY -gt 0; then
			echo "Changing directory to $X."
		fi
		cd $X
		if test $VERBOSITY -gt 0; then
			echo "Running vrpmake."
		fi
		vrpmake || exit 1
		cd ..
	fi
done
