소스 검색

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
 else
+	s="$?"
 	echo
 	echo "--------------------------"
 	echo "Running autoreconf failed."
 	echo "--------------------------"
 	echo
+	exit "$s"
 fi