xwords/xwords4/android/scripts/setup_local_props.sh
2013-11-13 07:55:41 -08:00

34 lines
513 B
Bash
Executable file

#!/bin/sh
set -u -e
TARGET="Google Inc.:Google APIs:14"
usage() {
echo "usage: $0 [--target TARGET]"
exit 1
}
while [ $# -ge 1 ]; do
echo $1
case $1 in
--target)
shift
TARGET=$1
;;
*)
echo "default: got $1"
usage
;;
esac
shift
done
# create local.properties
android update project --path . --target "$TARGET"
echo "local.properties looks like this:"
echo ""
cat local.properties
echo ""
exit 0