mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
get rid of -i param; instead install to all devices instead of passing
'install' to ant.
This commit is contained in:
parent
fdde7b67bc
commit
473bea77d6
1 changed files with 16 additions and 18 deletions
|
@ -4,33 +4,31 @@ set -e -u
|
|||
|
||||
MANIFEST=AndroidManifest.xml
|
||||
INSTALL=''
|
||||
CMDS=''
|
||||
|
||||
usage() {
|
||||
[ $# -ge 1 ] && echo "ERROR: $1"
|
||||
echo "usage: $0 [-i] <cmds to ant>"
|
||||
echo " default commands: $CMDS"
|
||||
echo "usage: $0 <cmds to ant>"
|
||||
exit 1
|
||||
}
|
||||
|
||||
CMDS="clean debug install"
|
||||
|
||||
if [ $# -ge 1 -a $1 = '-i' ]; then
|
||||
INSTALL=1
|
||||
shift
|
||||
fi
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
while [ $# -gt 0 ]; do
|
||||
case $1 in
|
||||
--help|-h|-help|-?)
|
||||
usage
|
||||
;;
|
||||
*)
|
||||
CMDS="$*"
|
||||
break;
|
||||
;;
|
||||
--help|-h|-help|-?)
|
||||
usage
|
||||
;;
|
||||
clean|debug|release)
|
||||
CMDS="$CMDS $1"
|
||||
;;
|
||||
install)
|
||||
INSTALL=1
|
||||
;;
|
||||
*)
|
||||
usage "Unexpected param $1"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
fi
|
||||
done
|
||||
|
||||
while [ ! -e $MANIFEST -o $(basename $(pwd)) = 'bin' ]; do
|
||||
[ '/' = $(pwd) ] && usage "reached root without finding $MANIFEST"
|
||||
|
|
Loading…
Add table
Reference in a new issue