Skip to content
Browse files

Exit the autogen.sh script if one of the commands fail.

  • Loading branch information...
1 parent e58f397 commit 18d51a60a1005ceea9f8b3b6fe6a835fcb6811fb @rakshasa committed
Showing with 6 additions and 6 deletions.
  1. +6 −6 autogen.sh
View
12 autogen.sh
@@ -6,7 +6,7 @@ echo aclocal...
exit 1
}
-aclocal -I ./scripts -I . ${ACLOCAL_FLAGS}
+aclocal -I ./scripts -I . ${ACLOCAL_FLAGS} || exit 1
echo autoheader...
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
@@ -14,16 +14,16 @@ echo autoheader...
exit 1
}
-autoheader
+autoheader || exit 1
echo -n "libtoolize... "
if ( (glibtoolize --version) < /dev/null > /dev/null 2>&1 ); then
echo "using glibtoolize"
- glibtoolize --automake --copy --force
+ glibtoolize --automake --copy --force || exit 1
elif ( (libtoolize --version) < /dev/null > /dev/null 2>&1 ) ; then
echo "using libtoolize"
- libtoolize --automake --copy --force
+ libtoolize --automake --copy --force || exit 1
else
echo "libtoolize nor glibtoolize not found"
@@ -36,7 +36,7 @@ echo automake...
exit 1
}
-automake --add-missing --copy --gnu
+automake --add-missing --copy --gnu || exit 1
echo autoconf...
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
@@ -44,7 +44,7 @@ echo autoconf...
exit 1
}
-autoconf
+autoconf || exit 1
echo ready to configure

0 comments on commit 18d51a6

Please sign in to comment.
Something went wrong with that request. Please try again.