mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
git-copied (using checkout) from android_bt
This commit is contained in:
parent
e0ee197888
commit
49a3f1cad6
1 changed files with 30 additions and 0 deletions
30
xwords4/android/scripts/alogcat-n.sh
Executable file
30
xwords4/android/scripts/alogcat-n.sh
Executable file
|
@ -0,0 +1,30 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -u -e
|
||||||
|
|
||||||
|
INDX=1
|
||||||
|
PAT="."
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
[ $# -ge 1 ] && echo "ERROR: $1"
|
||||||
|
echo "usage: $(basename $0) [-n <1-based-indx>] [-g]"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
while [ $# -ge 1 ]; do
|
||||||
|
case $1 in
|
||||||
|
-n) shift
|
||||||
|
[ $# -ge 1 ] || usage "-n requires a parameter"
|
||||||
|
INDX=$1
|
||||||
|
;;
|
||||||
|
-g) PAT="D/XW4\|D/xw4"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
DEVICE=$(adb devices | grep 'device$' | awk '{print $1}' | sed -n "${INDX}p")
|
||||||
|
adb -s $DEVICE logcat | grep "$PAT"
|
Loading…
Reference in a new issue