fix to use new sdk version to generate local.properties

This commit is contained in:
Eric House 2011-11-19 19:23:58 -08:00
parent d806e3f906
commit e335f5cf61

View file

@ -1,14 +1,16 @@
#!/bin/sh
echo $0
cd $(dirname $0)
cd ../XWords4
if [ ! -e local.properties ]; then
ANDROID="$(which android)"
SDK_DIR=$(dirname $ANDROID)
SDK_DIR=$(dirname $SDK_DIR)
echo "# generated by $0" > local.properties
echo "sdk.dir=$SDK_DIR" >> local.properties
fi
# create local.properties for 1.6 sdk (target id 4). Use 'android
# list targets' to get the full set.
android update project --path . --target 4
echo "local.properties looks like this:"
echo ""
cat local.properties
echo ""
exit 0