mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-11 12:53:53 +00:00
27 lines
790 B
Bash
27 lines
790 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
PACKAGE=WiiMoteOpenGLDemo
|
||
|
|
||
|
VERSION=1.0
|
||
|
REVISION=`svn info | grep Revision | cut -d " " -f 2`
|
||
|
ARCHIVE=$PACKAGE-$VERSION-$REVISION.deb
|
||
|
|
||
|
echo Creating $PACKAGE package version $VERSION revision $REVISION
|
||
|
rm -rf $PACKAGE
|
||
|
|
||
|
mkdir -p $PACKAGE/DEBIAN
|
||
|
cp control $PACKAGE/DEBIAN
|
||
|
echo "Version: $VERSION-$REVISION" >> $PACKAGE/DEBIAN/control
|
||
|
|
||
|
mkdir -p $PACKAGE/Applications/
|
||
|
cp -r build/Debug-iphoneos/WiiMoteOpenGLDemo.app $PACKAGE/Applications
|
||
|
export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
|
||
|
ldid -S $PACKAGE/Applications/WiiMoteOpenGLDemo.app/WiiMoteOpenGLDemo
|
||
|
|
||
|
echo Packaging $PACKAGE
|
||
|
export COPYFILE_DISABLE
|
||
|
export COPY_EXTENDED_ATTRIBUTES_DISABLE
|
||
|
dpkg-deb -b $PACKAGE $ARCHIVE
|
||
|
dpkg-deb --info $ARCHIVE
|
||
|
dpkg-deb --contents $ARCHIVE
|