aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Ant <anthony@dervishsoftware.com>2014-10-08 21:05:39 +0100
committerGravatar Ant <anthony@dervishsoftware.com>2014-10-08 21:05:39 +0100
commit1c66c4dafe7da14a59faf82aadabb1e6e01ac565 (patch)
treeb03a4085655450fb074a716b006ac5c041f5d600 /scripts
parent0b5d682382b50088d0b54a6deefd845f404811e9 (diff)
Only prepare the pre-requisites for the current SDKROOT
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/prepare.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/scripts/prepare.sh b/scripts/prepare.sh
index 9b76ec12..6ba0c188 100755
--- a/scripts/prepare.sh
+++ b/scripts/prepare.sh
@@ -1,4 +1,15 @@
#!/bin/sh
-./prepare-mac.sh
-./prepare-ios.sh
+# If this script is run outside of Xcode, prepare both platforms by default
+if [ -z "$SDKROOT" ]; then
+ SDKROOT="MacOSX iPhone"
+fi
+
+if echo "$SDKROOT" | grep -q "MacOSX"; then
+ echo "Preparing Mac"
+ ./prepare-mac.sh
+fi
+if echo "$SDKROOT" | grep -q "iPhone"; then
+ echo "Preparing iOS"
+ ./prepare-ios.sh
+fi