Skip to content

Commit

Permalink
autogen.sh: fail after tools check
Browse files Browse the repository at this point in the history
The script should fail _after_ checking that the needed tools are
installed.

The problem was that if autoconf is NOT installed then the script just
exit with no error message. No we have:
Please install autoconf and rerun this script !
  • Loading branch information
LudovicRousseau committed Oct 23, 2016
1 parent 12bffbe commit d3f29e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#
# Requires: automake, autoconf, dpkg-dev

# fail on error
set -e

#
# Check if autoconf and automake are installed
#
Expand All @@ -32,6 +29,9 @@ then
echo "Error: directory $PATH_AUTOMAKE does not exist"
fi

# fail on error
set -e

# Refresh GNU autotools toolchain.
for i in config.guess config.sub missing install-sh mkinstalldirs ; do
test -r $PATH_AUTOMAKE/${i} && {
Expand Down

0 comments on commit d3f29e2

Please sign in to comment.