aboutsummaryrefslogtreecommitdiff
path: root/v1/find-android.sh
diff options
context:
space:
mode:
Diffstat (limited to 'v1/find-android.sh')
-rwxr-xr-xv1/find-android.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/v1/find-android.sh b/v1/find-android.sh
new file mode 100755
index 000000000..55f852606
--- /dev/null
+++ b/v1/find-android.sh
@@ -0,0 +1,10 @@
+#!/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