mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
rename script, and add install option so can work with multiple devices
This commit is contained in:
parent
0b2c029e67
commit
5035042ce4
2 changed files with 14 additions and 3 deletions
|
@ -3,15 +3,22 @@
|
|||
set -e -u
|
||||
|
||||
MANIFEST=AndroidManifest.xml
|
||||
INSTALL=''
|
||||
|
||||
usage() {
|
||||
[ $# -ge 1 ] && echo "ERROR: $1"
|
||||
echo "usage: $0 <cmds to ant>"
|
||||
echo "usage: $0 [-i] <cmds to ant>"
|
||||
echo " default commands: $CMDS"
|
||||
exit 1
|
||||
}
|
||||
|
||||
CMDS="clean debug install"
|
||||
|
||||
if [ $# -ge 1 -a $1 = '-i' ]; then
|
||||
INSTALL=1
|
||||
shift
|
||||
fi
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
case $1 in
|
||||
--help|-h|-help|-?)
|
||||
|
@ -48,6 +55,10 @@ esac
|
|||
|
||||
ant $CMDS
|
||||
|
||||
if [ "$CMDS" != "${CMDS%%install}" ]; then
|
||||
adb shell am start -n org.eehouse.android.${PKG}/org.eehouse.android.${PKG}.GamesListActivity
|
||||
if [ -n "$INSTALL" ]; then
|
||||
adb-install.sh -e -d
|
||||
fi
|
||||
|
||||
# if [ "$CMDS" != "${CMDS%%install}" ]; then
|
||||
# adb shell am start -n org.eehouse.android.${PKG}/org.eehouse.android.${PKG}.GamesListActivity
|
||||
# fi
|
||||
|
|
Loading…
Add table
Reference in a new issue