summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2009-12-04 09:50:55 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2009-12-04 12:46:45 +0100
commit146e841fc920e1caea702ef42e2088244b9b8464 (patch)
tree3315232ffe9576449c53f9ee80cd7f037a0a14f5 /bootstrap
parentc65d94f7d0e0c511794ea1f42ddf01e66f97e236 (diff)
downloadopenocd+libswd-146e841fc920e1caea702ef42e2088244b9b8464.tar.gz
openocd+libswd-146e841fc920e1caea702ef42e2088244b9b8464.tar.bz2
openocd+libswd-146e841fc920e1caea702ef42e2088244b9b8464.tar.xz
openocd+libswd-146e841fc920e1caea702ef42e2088244b9b8464.zip
bootstrap: stop execution upon error
When tools are not installed, exit immediately. This makes the error messages clearer. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap3
1 files changed, 3 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 7684dc48..268d07c1 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