mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +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
|
#!/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
|
||||||
|
|
Loading…
Reference in a new issue