aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/prepare.sh
blob: 6ba0c188f29dc15bc0f738906ff9a1f0c79d30cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/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