2015-02-06 13:48:41 +00:00
|
|
|
#!/bin/sh
|
2015-04-11 20:28:00 +00:00
|
|
|
DIR=`dirname $0`
|
2015-02-06 13:48:41 +00:00
|
|
|
|
|
|
|
echo "Update version info"
|
2015-11-13 14:04:41 +00:00
|
|
|
$DIR/../../tool/get_version.sh
|
2015-02-06 13:48:41 +00:00
|
|
|
|
|
|
|
echo "Rebuild clean"
|
2015-04-11 20:28:00 +00:00
|
|
|
pushd .
|
|
|
|
cd $DIR
|
2015-02-06 13:48:41 +00:00
|
|
|
make clean
|
|
|
|
make
|
2015-04-11 20:28:00 +00:00
|
|
|
popd
|
2015-02-06 13:48:41 +00:00
|
|
|
|
|
|
|
echo "Build Java Classes"
|
|
|
|
pushd .
|
2015-11-13 14:04:41 +00:00
|
|
|
cd $DIR/../../binding/java
|
2015-02-06 13:48:41 +00:00
|
|
|
ant jar
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd .
|
2015-04-11 20:28:00 +00:00
|
|
|
cd $DIR/../..
|
2016-01-20 15:11:27 +00:00
|
|
|
VERSION=`sed -n -e 's/^.*BTSTACK_VERSION \"\(.*\)\"/\1/p' src/btstack_version.h`
|
2015-04-11 20:28:00 +00:00
|
|
|
ARCHIVE=btstack-android-mtk-$VERSION.tar.gz
|
|
|
|
echo "Create Archive $ARCHIVE"
|
|
|
|
rm -f $ARCHIVE
|
2015-11-13 14:04:41 +00:00
|
|
|
tar cfz $ARCHIVE port/mtk binding/java
|
2015-02-06 13:48:41 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
|