blob: 55f8526065d46dad401f2e3ebf4d632750ab0f43 [file] [log] [blame]
#!/bin/sh
# TODO: make this script work with android installed via homebrew. Until then, you must manually make sure
# ANDROID_HOME has been set before running ant (e.g. ANDROID_HOME=/usr/local/Cellar/android-sdk/r10 ant)
if [ -z $ANDROID_HOME ]; then
ANDROID_HOME=`which android | sed 's/\/tools\/android$//'`
fi
echo "sdk.dir=$ANDROID_HOME" > local.properties