From: Øyvind Harboe Date: Fri, 4 Dec 2009 08:50:55 +0000 (+0100) Subject: bootstrap: stop execution upon error X-Git-Tag: v0.4.0-rc1~125 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=146e841fc920e1caea702ef42e2088244b9b8464;ds=sidebyside bootstrap: stop execution upon error When tools are not installed, exit immediately. This makes the error messages clearer. Signed-off-by: Øyvind Harboe --- diff --git a/bootstrap b/bootstrap index 7684dc48c1..268d07c16f 100755 --- a/bootstrap +++ b/bootstrap @@ -1,6 +1,9 @@ #!/bin/sh -e # Run the autotools bootstrap sequence to create the configure script +# Stop execution as soon as we have an unknown command +set -e + if libtoolize --version >/dev/null 2>&1; then libtoolize="libtoolize" elif glibtoolize --version >/dev/null 2>&1; then