mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
add build script
This commit is contained in:
parent
babb02898e
commit
2b653dcf9b
1 changed files with 33 additions and 0 deletions
33
xwords4/android/scripts/find-and-ant.sh
Executable file
33
xwords4/android/scripts/find-and-ant.sh
Executable file
|
@ -0,0 +1,33 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e -u
|
||||||
|
|
||||||
|
MANIFEST=AndroidManifest.xml
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
[ $# -ge 1 ] && echo "ERROR: $1"
|
||||||
|
echo "usage: $0 <cmds to ant>"
|
||||||
|
echo " default commands: $CMDS"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
CMDS="clean debug install"
|
||||||
|
if [ $# -gt 0 ]; then
|
||||||
|
case $1 in
|
||||||
|
--help|-h|-help|-?)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
CMDS="$*"
|
||||||
|
break;
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
while [ ! -e $MANIFEST ]; do
|
||||||
|
[ '/' = $(pwd) ] && usage "reached root without finding $MANIFEST"
|
||||||
|
cd ..
|
||||||
|
done
|
||||||
|
|
||||||
|
ant $CMDS
|
Loading…
Reference in a new issue