btstack/port/mtk/package.sh

30 lines
460 B
Bash
Raw Normal View History

#!/bin/sh
DIR=`dirname $0`
echo "Update version info"
2015-11-13 14:04:41 +00:00
$DIR/../../tool/get_version.sh
echo "Rebuild clean"
pushd .
cd $DIR
make clean
make
popd
echo "Build Java Classes"
pushd .
2015-11-13 14:04:41 +00:00
cd $DIR/../../binding/java
ant jar
popd
pushd .
cd $DIR/../..
2016-01-20 15:11:27 +00:00
VERSION=`sed -n -e 's/^.*BTSTACK_VERSION \"\(.*\)\"/\1/p' src/btstack_version.h`
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
popd