[PATCH] scripts: run all scripts with -e
Anton Lundin
glance at acc.umu.se
Wed Aug 17 12:36:50 PDT 2016
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 <glance at acc.umu.se>
---
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 bbf4657..f8ba60f 100755
--- a/Documentation/make_POT.sh
+++ b/Documentation/make_POT.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -e
#
# Author(s): Guillaume GARDET <guillaume.gardet at free.fr>
#
diff --git a/Documentation/make_PO_to_ASCIIDOC.sh b/Documentation/make_PO_to_ASCIIDOC.sh
index c619e0a..2aae388 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 <guillaume.gardet at free.fr>
#
diff --git a/packaging/macosx/sign b/packaging/macosx/sign
index 8b1b0e8..6d41194 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 d6738ab..4920c1d 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 a825c51..3e6f4de 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 ad1286c..a40de81 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 8361c7c..5c2df96 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:
--
2.7.4
More information about the subsurface
mailing list