mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
uninstall based on where called from
This commit is contained in:
parent
c1bdaa13ee
commit
bbbc8124ba
1 changed files with 18 additions and 1 deletions
|
@ -10,6 +10,23 @@ usage() {
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ ! -e build.xml ]; then
|
||||||
|
usage "No build.xml; please run me from the top android directory"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DIRNAME=$(basename $(pwd))
|
||||||
|
case $DIRNAME in
|
||||||
|
XWords4-bt)
|
||||||
|
PKG=xw4bt
|
||||||
|
;;
|
||||||
|
XWords4)
|
||||||
|
PKG=xw4
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
usage "running in unexpected directory $DIRNAME"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
while [ $# -ge 1 ]; do
|
while [ $# -ge 1 ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-n)
|
-n)
|
||||||
|
@ -24,4 +41,4 @@ done
|
||||||
|
|
||||||
SERIAL="$(adb devices | grep 'device$' | sed -n "$((1+INDEX)) p" | awk '{print $1}')"
|
SERIAL="$(adb devices | grep 'device$' | sed -n "$((1+INDEX)) p" | awk '{print $1}')"
|
||||||
|
|
||||||
adb -s $SERIAL uninstall org.eehouse.android.xw4
|
adb -s $SERIAL uninstall org.eehouse.android.${PKG}
|
||||||
|
|
Loading…
Reference in a new issue