mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix to use new sdk version to generate local.properties
This commit is contained in:
parent
d806e3f906
commit
e335f5cf61
1 changed files with 9 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue