From f8e1e3b0a0c706cb6e21b385778671f1d3a52f68 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 19 Nov 2020 22:48:35 +0100 Subject: [PATCH] [build scripts] exit codes in macOS file watcher and TouchBar support build scripts GitOrigin-RevId: 1c456f25eac7800eed11cbbcd308f09128bb76f2 --- native/MacTouchBar/make.sh | 12 +++++++----- native/fsNotifier/mac/make.sh | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/native/MacTouchBar/make.sh b/native/MacTouchBar/make.sh index ab9a83bed6d1..8c15f51628cb 100755 --- a/native/MacTouchBar/make.sh +++ b/native/MacTouchBar/make.sh @@ -1,11 +1,13 @@ #!/bin/sh + rm -rf build mkdir build -cd build +cd build || exit 1 -cmake -DCMAKE_BUILD_TYPE=Release .. -make VERBOSE=1 +cmake -DCMAKE_BUILD_TYPE=Release .. || exit 2 + +make VERBOSE=1 || exit 3 if [ "$1" = "install" ]; then -make install/strip VERBOSE=1 -fi \ No newline at end of file + make install/strip VERBOSE=1 || exit 4 +fi diff --git a/native/fsNotifier/mac/make.sh b/native/fsNotifier/mac/make.sh index ab9a83bed6d1..8c15f51628cb 100755 --- a/native/fsNotifier/mac/make.sh +++ b/native/fsNotifier/mac/make.sh @@ -1,11 +1,13 @@ #!/bin/sh + rm -rf build mkdir build -cd build +cd build || exit 1 -cmake -DCMAKE_BUILD_TYPE=Release .. -make VERBOSE=1 +cmake -DCMAKE_BUILD_TYPE=Release .. || exit 2 + +make VERBOSE=1 || exit 3 if [ "$1" = "install" ]; then -make install/strip VERBOSE=1 -fi \ No newline at end of file + make install/strip VERBOSE=1 || exit 4 +fi