Fix autogen.sh to be portable and fail when autoreconf fails

This commit is contained in:
Nicolas Williams
2011-10-17 16:27:58 -05:00
parent d56bb35a50
commit 6bcdba3a38

View File

@@ -4,4 +4,4 @@
# tool-chain installed # tool-chain installed
set -e set -e
autoreconf -f -i || { echo "autoreconf failed: $?"; exit 1; } autoreconf -f -i || { echo "autoreconf failed: $?"; exit 1; }
find . \( -name '*-private.h' -o -name '*-protos.h' \) | xargs rm find . \( -name '*-private.h' -o -name '*-protos.h' \) | xargs rm -f