btstack/port/mtk/package.sh

30 lines
442 B
Bash
Raw Normal View History

#!/bin/sh
DIR=`dirname $0`
echo "Update version info"
$DIR/../../tools/get_version.sh
echo "Rebuild clean"
pushd .
cd $DIR
make clean
make
popd
echo "Build Java Classes"
pushd .
cd $DIR/../../java
ant jar
popd
pushd .
cd $DIR/../..
2015-10-15 14:33:34 +00:00
VERSION=`sed -n -e 's/^.*BTSTACK_VERSION \"\(.*\)\"/\1/p' src/version.h`
ARCHIVE=btstack-android-mtk-$VERSION.tar.gz
echo "Create Archive $ARCHIVE"
rm -f $ARCHIVE
tar cfz $ARCHIVE platforms/mtk java
popd