mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
take .apk file as optional param
This commit is contained in:
parent
840385b3ad
commit
6496736625
1 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,7 @@ APK=./bin/XWords4-debug.apk
|
|||
|
||||
usage() {
|
||||
[ $# -ge 1 ] && echo "Error: $1"
|
||||
echo "usage: $(basename $0) [-e] [-d]"
|
||||
echo "usage: $(basename $0) [-e] [-d] [-p /path/to/.apk]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,11 @@ while [ $# -ge 1 ]; do
|
|||
-d)
|
||||
DEVICES="$DEVICES $(adb devices | grep -v emulator | grep 'device$' | awk '{print $1}')"
|
||||
;;
|
||||
-p)
|
||||
[ $# -gt 1 ] || usage "-p requires an argument"
|
||||
shift
|
||||
APK=$1
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue