summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jeroen Massar <jeroen@massar.ch>2016-03-16 09:28:52 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-16 07:34:57 -0700
commit122088c8911397cdcb3099aaa14d10f47275664c (patch)
tree00535ad31ac9b9f0381bffd8e286cc3c427f25f8
parent1bea93d6eecff39c43dbdb94f1af6b3c9df3240e (diff)
downloadsubsurface-122088c8911397cdcb3099aaa14d10f47275664c.tar.gz
Verify that the Xcode Command Line Tools are installedv4.5.4
Otherwise /usr/include does not exist on a clean-ish install Signed-off-by: Jeroen Massar <jeroen@massar.ch> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rwxr-xr-xscripts/build.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 73b06015b..105a21404 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -28,6 +28,18 @@ if [[ ! -d "subsurface" ]] ; then
exit 1
fi
+# Verify that the Xcode Command Line Tools are installed
+if [ $PLATFORM = Darwin ] ; then
+ if [ ! -d /usr/include ] ; then
+ echo "Error: Xcode Command Line Tools are not installed"
+ echo ""
+ echo "Please run:"
+ echo " xcode-select --install"
+ echo "to install them (you'll have to agree to Apple's licensing terms etc), then run build.sh again"
+ exit 1;
+ fi
+fi
+
mkdir -p install-root
INSTALL_ROOT=$SRC/install-root