From: Øyvind Harboe Date: Fri, 4 Dec 2009 08:50:55 +0000 (+0100) Subject: bootstrap: stop execution upon error X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=146e841fc920e1caea702ef42e2088244b9b8464;p=fw%2Fopenocd 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 7684dc48c..268d07c16 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