From e335f5cf61be034338ccbdb1a7a2b417f66af3a1 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sat, 19 Nov 2011 19:23:58 -0800 Subject: [PATCH] fix to use new sdk version to generate local.properties --- xwords4/android/scripts/setup_local_props.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/xwords4/android/scripts/setup_local_props.sh b/xwords4/android/scripts/setup_local_props.sh index 3016c9319..032deb1d6 100755 --- a/xwords4/android/scripts/setup_local_props.sh +++ b/xwords4/android/scripts/setup_local_props.sh @@ -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