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