xref: /btstack/port/mtk/package.sh (revision 2531c97e167e1cae4616c774a6c07906b45ebb44)
18caefee3SMatthias Ringwald#!/bin/sh
28caefee3SMatthias RingwaldDIR=`dirname $0`
38caefee3SMatthias Ringwald
48caefee3SMatthias Ringwaldecho "Update version info"
53edc84c5SMatthias Ringwald$DIR/../../tool/get_version.sh
68caefee3SMatthias Ringwald
78caefee3SMatthias Ringwaldecho "Rebuild clean"
88caefee3SMatthias Ringwaldpushd .
98caefee3SMatthias Ringwaldcd $DIR
108caefee3SMatthias Ringwaldmake clean
118caefee3SMatthias Ringwaldmake
128caefee3SMatthias Ringwaldpopd
138caefee3SMatthias Ringwald
148caefee3SMatthias Ringwaldecho "Build Java Classes"
158caefee3SMatthias Ringwaldpushd .
163edc84c5SMatthias Ringwaldcd $DIR/../../binding/java
178caefee3SMatthias Ringwaldant jar
188caefee3SMatthias Ringwaldpopd
198caefee3SMatthias Ringwald
208caefee3SMatthias Ringwaldpushd .
218caefee3SMatthias Ringwaldcd $DIR/../..
22*2531c97eSMatthias RingwaldVERSION=`sed -n -e 's/^.*BTSTACK_VERSION \"\(.*\)\"/\1/p' platform/daemon/src/btstack_version.h`
238caefee3SMatthias RingwaldARCHIVE=btstack-android-mtk-$VERSION.tar.gz
248caefee3SMatthias Ringwaldecho "Create Archive $ARCHIVE"
258caefee3SMatthias Ringwaldrm -f $ARCHIVE
263edc84c5SMatthias Ringwaldtar cfz $ARCHIVE port/mtk binding/java
278caefee3SMatthias Ringwaldpopd
288caefee3SMatthias Ringwald
298caefee3SMatthias Ringwald
30