mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-31 19:57:06 +01:00
fix script for a gradle world
This commit is contained in:
parent
d87a1ca7a8
commit
2de54a2535
1 changed files with 4 additions and 1 deletions
|
@ -27,12 +27,15 @@ getPackage() {
|
|||
echo $PACK
|
||||
}
|
||||
|
||||
# FIXME: not all options require a working directory, e.g. --apk
|
||||
WD=$(pwd)
|
||||
while :; do
|
||||
if [ -e ${WD}/AndroidManifest.xml -a -e ${WD}/build.xml ]; then
|
||||
break
|
||||
elif [ -e ${WD}/app/build.gradle ]; then
|
||||
break
|
||||
elif [ ${WD} = '/' ]; then
|
||||
usage "reached / without finding AndroidManifest.xml"
|
||||
usage "reached / without finding AndroidManifest.xml or build.gradle"
|
||||
else
|
||||
WD=$(cd $WD/.. && pwd)
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue