#!/bin/sh PACKAGE=BTstack VERSION=0.1 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 resources/control $PACKAGE/DEBIAN echo "Version: $VERSION-$REVISION" >> $PACKAGE/DEBIAN/control mkdir -p $PACKAGE/usr/local/bin cp src/BTdaemon $PACKAGE/usr/local/bin mkdir -p $PACKAGE/usr/local/lib cp src/libBTstack.dylib $PACKAGE/usr/local/lib mkdir -p $PACKAGE/System/Library/CoreServices/SpringBoard.app/ cp resources/*.png $PACKAGE/System/Library/CoreServices/ mkdir -p $PACKAGE/Library/LaunchDaemons/ cp resources/ch.ringwald.BTstack.plist $PACKAGE/Library/LaunchDaemons/ echo Packaging $PACKAGE export COPYFILE_DISABLE export COPY_EXTENDED_ATTRIBUTES_DISABLE dpkg-deb -b $PACKAGE $ARCHIVE dpkg-deb --info $ARCHIVE dpkg-deb --contents $ARCHIVE