blob: 5b1b8de9053603b2d10cd6c303124d7cb0dd66aa [file] [log] [blame]
# Platform specific build scripts should source directly the platform specific
# version of this scripts. If you're using an older script that tries to handle
# all platforms then call this one. We've moved to using platform specific build
# scripts where possible since most of our Windows builds diverge so far from
# the mac/linux ones. Most Mac/Linux ones can still be shared.
set -e
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=linux ;;
Darwin*) machine=macosx ;;
*) machine="unhandled:${unameOut}" ;;
source $(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)/${machine}/