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