mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
script to build all possible variants
This commit is contained in:
parent
ff7f4655f7
commit
e70dc45fb1
1 changed files with 32 additions and 0 deletions
32
xwords4/android/scripts/build-all-variants.sh
Executable file
32
xwords4/android/scripts/build-all-variants.sh
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e -u
|
||||
|
||||
usage() {
|
||||
[ $# -gt 0 ] && echo "ERROR: $1"
|
||||
echo "usage: $0 [--with-fdroid]"
|
||||
echo "builds all variants except fdroid since that build will fail outside their system"
|
||||
exit 1
|
||||
}
|
||||
|
||||
VARIANTS="xw4 xw4d xw4dNoSMS"
|
||||
WD=$(cd $(dirname $0)/../ && pwd)
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case $1 in
|
||||
--with-fdroid)
|
||||
VARIANTS="$VARIANTS xw4fdroid"
|
||||
;;
|
||||
*)
|
||||
usage "unexpected param $1"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
for VARIANT in $VARIANTS; do
|
||||
echo "***** building $VARIANT *****"
|
||||
VARIANT=$(echo ${VARIANT:0:1} | tr '[:lower:]' '[:upper:]')${VARIANT:1}
|
||||
TARGET=as${VARIANT}Deb
|
||||
(cd $WD && ./gradlew clean $TARGET)
|
||||
done
|
Loading…
Reference in a new issue