1#!/bin/sh
2
3# TODO: make this script work with android installed via homebrew. Until then, you must manually make sure
4# ANDROID_HOME has been set before running ant (e.g. ANDROID_HOME=/usr/local/Cellar/android-sdk/r10 ant)
5
6if [ -z $ANDROID_HOME ]; then
7  ANDROID_HOME=`which android | sed 's/\/tools\/android$//'`
8fi
9
10echo "sdk.dir=$ANDROID_HOME" > local.properties
11