:
# Make all public commands
#
# :makeall [-e]
#	to make all public commands underneath this directory
#
# :makeall [-e] install
#	to install all public commands underneath this directory
#

NOTDONEYET="gdb-3.1.2"
DIRS="bison-1.01 diff-1.7 flex gawk-2.10 grep-1.3 emacs-18.54" # make-3.48
ERRORS=''

for i in $DIRS
do
    (cd $i && echo "WORKING ON: $i" && make ${1+"$@"})
    if [ "$?" != 0 ]
    then
	ERRORS="$ERRORS $i"
    fi
done

if [ "x$ERRORS" != "x" ]
then
    echo "Errors were made in: $ERRORS"
    exit 1
fi

exit 0
