Commit 6ab18dddb3b8e6c510f41637a32c8b384db923d0

Authored by Hans Ulrich Niedermann
Committed by Stéphane Raimbault
1 parent 51d366f7

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".
Showing 1 changed file with 2 additions and 0 deletions
autogen.sh
... ... @@ -6,9 +6,11 @@ if autoreconf --install --symlink --force; then
6 6 echo "------------------------------------------------------"
7 7 echo
8 8 else
  9 + s="$?"
9 10 echo
10 11 echo "--------------------------"
11 12 echo "Running autoreconf failed."
12 13 echo "--------------------------"
13 14 echo
  15 + exit "$s"
14 16 fi
... ...