check: make any failure fatal
authorEric Engestrom <eric@engestrom.ch>
Sun, 26 Feb 2017 00:17:52 +0000 (00:17 +0000)
committerEric Engestrom <eric@engestrom.ch>
Sun, 26 Feb 2017 13:39:43 +0000 (13:39 +0000)
Previously, only the last error code was returned.
Using `set -e` makes the script quit on any unhandled error.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
src/egl/egl-entrypoint-check
src/glx/tests/dispatch-index-check

index 3bf69b2275555a17de6c3780478d250feff90515..e20b374454c8517491dc9d49c4265f3f8a5b3cf8 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+set -e
 
 entrypoints=$(grep EGL_ENTRYPOINT "$srcdir"/main/eglentrypoint.h)
 sorted=$(sort <<< "$entrypoints")
index baa09c5bd938f52b260c0fe0281e4fec16e9b060..244634131f6efd38a8b1ee6e8fd8f0c37545bc96 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+set -e
 
 # extract enum definition
 dispatch_list=$(sed '/__GLXdispatchIndex/,/__GLXdispatchIndex/!d' \