MAKEALL 414 Bytes
Newer Older
1 2 3 4 5 6 7
#!/bin/sh
# A trivial script to build with all known configurations
# (please add a configs/ file to test your special case

T=$(mktemp /tmp/wrpc-config.XXXXXX)

configs=$(ls configs)
8 9 10 11
if [ $# -ne 0 ]; then
    configs="$*"
fi

12 13 14 15 16 17 18 19 20 21
for c in $configs; do
    echo "##### Building with '$c'"
    if ! make $c 2>&1 >> $T; then
	echo "Error in configuration (see $T)"
	exit 1
    fi
    make -s clean
    make -s
done
rm $T