From 491e263af992339b71a5793bda32d1b3de356ef5 Mon Sep 17 00:00:00 2001 From: triplefive Date: Mon, 31 Oct 2022 15:19:35 -0400 Subject: [PATCH] added smartz to build.sh --- build.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 1a2d1c8a0..9806d770d 100755 --- a/build.sh +++ b/build.sh @@ -4,4 +4,16 @@ # file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html set -eu -o pipefail -./util/build.sh --disable-tests $@ + +# run correct build script for detected OS +if [[ "$OSTYPE" == "linux-gnu"* ]]; then + ./util/build.sh --disable-tests $@ +elif [[ "$OSTYPE" == "darwin"* ]]; then + ./util/build-mac.sh --disable-tests $@ +elif [[ "$OSTYPE" == "msys"* ]]; then + ./util/build-win.sh --disable-tests $@ +#elif [[ "$OSTYPE" == "freebsd"* ]]; then + # placeholder +else + echo "Unable to detect your OS. What are you using?" +fi