From 85ee989b5f4c909e3aebeb13753c6741dfc20b86 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Mon, 20 Jul 2020 14:58:18 +0200 Subject: [PATCH] Have build scripts fail on first failing command This avoids spurious errors from trying to copy files that weren't built, and mimics the behavior of other build systems --- src/subbuild-mac-intel.sh | 2 ++ src/subbuild-unix-unix.sh | 2 ++ src/subbuild-unix-w32.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/subbuild-mac-intel.sh b/src/subbuild-mac-intel.sh index c86f068..3eb5b9b 100755 --- a/src/subbuild-mac-intel.sh +++ b/src/subbuild-mac-intel.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + # Default flags CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release" diff --git a/src/subbuild-unix-unix.sh b/src/subbuild-unix-unix.sh index a3a1e7a..09a2ae3 100755 --- a/src/subbuild-unix-unix.sh +++ b/src/subbuild-unix-unix.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + # Default flags CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release" diff --git a/src/subbuild-unix-w32.sh b/src/subbuild-unix-w32.sh index 703d023..5ffc6ec 100755 --- a/src/subbuild-unix-w32.sh +++ b/src/subbuild-unix-w32.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + # Default flags CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release"