btstack/SpringBoardAccess/package.sh

30 lines
792 B
Bash
Raw Normal View History

2009-09-20 18:49:40 +00:00
#!/bin/sh
PACKAGE=SpringBoardAccess
2009-09-20 18:49:40 +00:00
VERSION=0.2
REVISION=`svn info | grep Revision | cut -d " " -f 2`
ARCHIVE=$PACKAGE-$VERSION-$REVISION.deb
2009-09-20 18:49:40 +00:00
echo Creating $PACKAGE package version $VERSION revision $REVISION
2009-10-29 19:52:37 +00:00
sudo rm -rf $PACKAGE
2009-09-20 18:49:40 +00:00
mkdir -p $PACKAGE/DEBIAN
cp control $PACKAGE/DEBIAN
echo "Version: $VERSION-$REVISION" >> $PACKAGE/DEBIAN/control
2009-09-20 18:49:40 +00:00
mkdir -p $PACKAGE/usr/local/bin
cp SpringBoardAccess-test $PACKAGE/usr/local/bin
mkdir -p $PACKAGE/Library/MobileSubstrate/DynamicLibraries
cp SpringBoardAccess.dylib SpringBoardAccess.plist $PACKAGE/Library/MobileSubstrate/DynamicLibraries
# set ownership to root:root
sudo chown -R 0:0 $PACKAGE
echo Packaging $PACKAGE
2009-09-20 18:49:40 +00:00
export COPYFILE_DISABLE
export COPY_EXTENDED_ATTRIBUTES_DISABLE
dpkg-deb -b $PACKAGE $ARCHIVE
dpkg-deb --info $ARCHIVE