Use debian naming conventions for .deb.

This commit is contained in:
Paul Chote
2011-02-08 14:44:56 +13:00
parent 501155da0d
commit 3794a6b5f2
4 changed files with 12 additions and 11 deletions

View File

@@ -1,12 +1,15 @@
#!/bin/bash
# OpenRA packaging script for Debian based distributions
E_BADARGS=85
if [ $# -ne "3" ]
then
echo "Usage: `basename $0` version root-dir outputdir"
exit $E_BADARGS
fi
VERSION=$1
VERSION=`echo $1 | sed "s/-/\\./g"`
rootdir=`readlink -f $2`
PACKAGE_SIZE=`du --apparent-size -c $rootdir/usr | grep "total" | awk '{print $1}'`
@@ -26,7 +29,7 @@ pushd root
md5sum `find . -type f | grep -v '^[.]/DEBIAN/'` | sed 's/\.\/usr\//usr\//g' > DEBIAN/md5sums
# Start building, the file should appear in the output directory
dpkg-deb -b . $3/openra-$VERSION.deb
dpkg-deb -b . $3/openra_${VERSION}_all.deb
# Clean up
popd