From be764245136d88e8027894bf247b4ab976acc938 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Mon, 23 Apr 2012 19:14:45 +0100 Subject: [PATCH] Fixes #1460. Add an `xcode-select` warning to bootstrap.sh. --- bootstrap.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index 31a9ead93..5491ddb04 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -372,6 +372,18 @@ else ask_append_shell_config "export CAPP_BUILD=\"$PWD/Build\"" fi +if [ `uname` = "Darwin" ]; then + xcode_path=`xcode-select -print-path 2>/dev/null` + if ! [ "$xcode_path" ] || ! [ -d "$xcode_path" ]; then + echo "================================================================================" + echo "WARNING: Your Xcode path seems to be incorrect. This may prevent the nib2cib and" + echo "XcodeCapp utilities from working. Fix your Xcode installation using the" + echo "xcode-select utility." + echo "For example:" + echo " sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer" + fi +fi + echo "================================================================================" echo "Bootstrapping of Cappuccino and other required tools is complete." echo "NOTE: any changes made to the shell configuration files won't take place until "