From 04d8d7cb13286d763b0078c53e3671352c94b1c6 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 17 Aug 2016 21:36:50 +0200 Subject: [PATCH] scripts: run all scripts with -e Run all scripts with -e so they exit as soon as something breaks. That way the build stops at the first error, not some other error. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- Documentation/make_POT.sh | 2 +- Documentation/make_PO_to_ASCIIDOC.sh | 2 +- packaging/macosx/sign | 2 +- packaging/macosx/subsurface.sh | 2 +- packaging/ubuntu/make-package.sh | 2 +- packaging/windows/mxe-based-build.sh | 2 +- scripts/build.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/make_POT.sh b/Documentation/make_POT.sh index bbf465790..f8ba60f22 100755 --- a/Documentation/make_POT.sh +++ b/Documentation/make_POT.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e # # Author(s): Guillaume GARDET # diff --git a/Documentation/make_PO_to_ASCIIDOC.sh b/Documentation/make_PO_to_ASCIIDOC.sh index c619e0a4c..2aae388e2 100755 --- a/Documentation/make_PO_to_ASCIIDOC.sh +++ b/Documentation/make_PO_to_ASCIIDOC.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e # # Author(s): Guillaume GARDET # diff --git a/packaging/macosx/sign b/packaging/macosx/sign index 8b1b0e853..6d41194eb 100644 --- a/packaging/macosx/sign +++ b/packaging/macosx/sign @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e # Hash is 3A8CE62A483083EDEA5581A61E770EC1FA8BECE8 but it doesn't seem to # find the key by hash diff --git a/packaging/macosx/subsurface.sh b/packaging/macosx/subsurface.sh index d6738abb4..4920c1dca 100755 --- a/packaging/macosx/subsurface.sh +++ b/packaging/macosx/subsurface.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e if test "x$GTK_DEBUG_LAUNCHER" != x; then set -x diff --git a/packaging/ubuntu/make-package.sh b/packaging/ubuntu/make-package.sh index a825c5151..3e6f4de4e 100644 --- a/packaging/ubuntu/make-package.sh +++ b/packaging/ubuntu/make-package.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e # start from the directory above the combined subsurface & subsurface/libdivecomputer directory # # in order to be able to make changes to the debian/* files without changing the source diff --git a/packaging/windows/mxe-based-build.sh b/packaging/windows/mxe-based-build.sh index ad1286c4a..a40de8151 100755 --- a/packaging/windows/mxe-based-build.sh +++ b/packaging/windows/mxe-based-build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e # build Subsurface for Win32 # diff --git a/scripts/build.sh b/scripts/build.sh index 02f109556..65bbcfb79 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e # # this should be run from the src directory, the layout is supposed to # look like this: