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