added version and svn revision number to archive

This commit is contained in:
matthias.ringwald 2009-09-28 21:47:55 +00:00
parent c50afb23e7
commit d60c81ccea
2 changed files with 18 additions and 12 deletions

View File

@ -1,6 +1,5 @@
Package: ch.ringwald.springboardaccess Package: ch.ringwald.springboardaccess
Name: SpringBoardAccess Name: SpringBoardAccess
Version: 0.1
Description: Controls status bar icons from daemons Description: Controls status bar icons from daemons
Section: Networking Section: Networking
Architecture: iphoneos-arm Architecture: iphoneos-arm

View File

@ -1,19 +1,26 @@
#!/bin/sh #!/bin/sh
echo Creating SpringBoardAccess package PACKAGE=SpringBoardAccess
rm -rf SpringBoardAccess
mkdir -p SpringBoardAccess/DEBIAN VERSION=0.1
cp control SpringBoardAccess/DEBIAN REVISION=`svn info | grep Revision | cut -d " " -f 2`
ARCHIVE=$PACKAGE-$VERSION-$REVISION.deb
mkdir -p SpringBoardAccess/usr/local/bin echo Creating $PACKAGE package version $VERSION revision $REVISION
cp SpringBoardAccess-test SpringBoardAccess/usr/local/bin rm -rf $PACKAGE
mkdir -p SpringBoardAccess/Library/MobileSubstrate/DynamicLibraries mkdir -p $PACKAGE/DEBIAN
cp SpringBoardAccess.dylib SpringBoardAccess.plist SpringBoardAccess/Library/MobileSubstrate/DynamicLibraries cp control $PACKAGE/DEBIAN
echo "Version: $VERSION-$REVISION" >> $PACKAGE/DEBIAN/control
echo Packaging SpringBoardAccess 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
echo Packaging $PACKAGE
export COPYFILE_DISABLE export COPYFILE_DISABLE
export COPY_EXTENDED_ATTRIBUTES_DISABLE export COPY_EXTENDED_ATTRIBUTES_DISABLE
dpkg-deb -b SpringBoardAccess dpkg-deb -b $PACKAGE $ARCHIVE
ls -la SpringBoardAccess.deb dpkg-deb --info $ARCHIVE