mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Verify that the Xcode Command Line Tools are installed
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>
This commit is contained in:
parent
0ddfd3a992
commit
cfd3d8868b
1 changed files with 12 additions and 0 deletions
|
@ -23,6 +23,18 @@ exec 1> >(tee build.log) 2>&1
|
|||
SRC=$(pwd)
|
||||
PLATFORM=$(uname)
|
||||
|
||||
# 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
|
||||
|
||||
# normally this script builds the desktop version in subsurface/build
|
||||
# if the first argument is "-mobile" then build Subsurface-mobile in subsurface/build-mobile
|
||||
# if the first argument is "-both" then build both in subsurface/build and subsurface/build-mobile
|
||||
|
|
Loading…
Add table
Reference in a new issue