Bash程序  |  11行  |  367 B

#!/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