blob: 55f8526065d46dad401f2e3ebf4d632750ab0f43 [file] [log] [blame]
Christian Williams & Ian Fisher780ae892010-08-09 17:35:10 -07001#!/bin/sh
2
Lowell Kirsh63780e82011-06-27 10:23:53 -07003# 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
David Farber & Ryan Richardbcc3a622011-07-14 12:01:15 -07006if [ -z $ANDROID_HOME ]; then
7 ANDROID_HOME=`which android | sed 's/\/tools\/android$//'`
Lowell Kirsh63780e82011-06-27 10:23:53 -07008fi
9
Mike Mazur & Tyler Schultz44d2fea2011-08-25 14:47:43 -070010echo "sdk.dir=$ANDROID_HOME" > local.properties