added optional path to debug

This commit is contained in:
brianleroux
2011-08-20 13:57:19 -07:00
parent 8b908fbad0
commit fe265ce9e1
2 changed files with 15 additions and 3 deletions

View File

@@ -1,4 +1,17 @@
#! /bin/sh
#
# USAGE
# ./debug [path]
#
set -e
PROJECT_PATH=${1:-$PWD}
# go to the proj
cd $PROJECT_PATH
# compile and install to the first device
ant debug install
# start the app
adb shell am start -n $(cat ./package-activity)