target is now hard-coded since I reliably can't derive it from the

manifest file.
This commit is contained in:
Eric House 2013-07-08 07:13:48 -07:00
parent 7e36171046
commit 7d968f8502

View file

@ -8,12 +8,6 @@ usage () {
exit 0 exit 0
} }
getSDK() {
LINE=$(grep 'android:minSdkVersion' ./AndroidManifest.xml)
SDK=$(echo $LINE | sed 's/^.*targetSdkVersion=\"\([0-9]*\)\".*$/\1/')
echo $SDK
}
TAG="" TAG=""
BRANCH="" BRANCH=""
VARIANT="XWords4" VARIANT="XWords4"
@ -67,10 +61,10 @@ git clone $SRCDIR BUILD
cd BUILD cd BUILD
git checkout ${TAG}${BRANCH} git checkout ${TAG}${BRANCH}
cd ./xwords4/android/${VARIANT} cd ./xwords4/android/${VARIANT}
../scripts/setup_local_props.sh --target android-$(getSDK) ../scripts/setup_local_props.sh
../scripts/arelease.sh --variant ${VARIANT} ../scripts/arelease.sh --variant ${VARIANT}
mkdir -p /tmp/releases_${VARIANT} mkdir -p /tmp/releases_${VARIANT}
cp *.apk /tmp/releases_${VARIANT} cp *.apk /tmp/releases_${VARIANT}
cd $CURDIR cd $CURDIR
rm -rf $BUILDIR # rm -rf $BUILDIR