2010-06-20 09:29:13 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2012-03-24 11:29:19 -07:00
|
|
|
set -u -e
|
|
|
|
|
2016-03-06 09:59:22 -08:00
|
|
|
TARGET="android-19"
|
2012-03-24 11:29:19 -07:00
|
|
|
|
|
|
|
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
|
2011-11-19 19:23:58 -08:00
|
|
|
|
2013-07-08 07:03:57 -07:00
|
|
|
# create local.properties
|
2013-07-08 07:09:03 -07:00
|
|
|
android update project --path . --target "$TARGET"
|
2010-06-20 09:29:13 -07:00
|
|
|
|
2011-11-19 19:23:58 -08:00
|
|
|
echo "local.properties looks like this:"
|
|
|
|
echo ""
|
|
|
|
cat local.properties
|
|
|
|
echo ""
|
2010-06-20 09:29:13 -07:00
|
|
|
exit 0
|