xwords/xwords4/android/scripts/setup_local_props.sh
Eric House d5eca2027a remove local.properties, and add a script, run from build.xml before
local.properties is loaded, to generate it with a path to sdk
appropriate to the installation.
2010-06-20 09:29:13 -07:00

16 lines
298 B
Bash
Executable file

#!/bin/sh
echo "i am here"
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
exit 0