فهرست منبع

Have autogen.sh fail if autoreconf fails

If the autoreconf program does not succeed, autogen.sh
should not succeed either.

The definition of "succeed" being "exit with exit code 0".
Hans Ulrich Niedermann 2 سال پیش
والد
کامیت
6ab18dddb3
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      autogen.sh

+ 2 - 0
autogen.sh

@@ -6,9 +6,11 @@ if autoreconf --install --symlink --force; then
 	echo "------------------------------------------------------"
 	echo "------------------------------------------------------"
 	echo
 	echo
 else
 else
+	s="$?"
 	echo
 	echo
 	echo "--------------------------"
 	echo "--------------------------"
 	echo "Running autoreconf failed."
 	echo "Running autoreconf failed."
 	echo "--------------------------"
 	echo "--------------------------"
 	echo
 	echo
+	exit "$s"
 fi
 fi