Use debian naming conventions for .deb.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user