From d56bb35a502a9a52a0bac4d8d559aafe8e7c4881 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Mon, 17 Oct 2011 15:47:50 -0500 Subject: [PATCH] Fix autogen.sh to be more portable and to fail when autoreconf fails --- autogen.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index c8ae49af0..6ffe44c1b 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,5 +2,6 @@ # to really generate all files you need to run "make distcheck" in a # object tree, but this will do if you have all parts of the required # tool-chain installed +set -e autoreconf -f -i || { echo "autoreconf failed: $?"; exit 1; } -find . \( -name '*-private.h' -o -name '*-protos.h' \) -delete +find . \( -name '*-private.h' -o -name '*-protos.h' \) | xargs rm