Home | History | Annotate | Download | only in robolectric
      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 
      6 if [ -z $ANDROID_HOME ]; then
      7   ANDROID_HOME=`which android | sed 's/\/tools\/android$//'`
      8 fi
      9 
     10 echo "sdk.dir=$ANDROID_HOME" > local.properties
     11