Make packaging less noisy, + random cleanups

This commit is contained in:
Oliver Brakmann
2015-05-02 16:38:22 +02:00
parent f251813f89
commit 71857be388
4 changed files with 16 additions and 19 deletions

View File

@@ -28,12 +28,12 @@ make install-linux-mime prefix="/usr" DESTDIR="$PWD/packaging/linux/$ROOTDIR"
mkdir -p $PWD/packaging/linux/$ROOTDIR/usr/share/doc/openra/
cp *.html $PWD/packaging/linux/$ROOTDIR/usr/share/doc/openra/
cd packaging/linux
pushd deb
pushd packaging/linux/deb >/dev/null
echo "Building Debian package."
bash buildpackage.sh "$TAG" ../$ROOTDIR "$PACKAGEDIR"
./buildpackage.sh "$TAG" ../$ROOTDIR "$PACKAGEDIR"
if [ $? -ne 0 ]; then
echo "Debian package build failed."
fi
popd
popd >/dev/null
rm -rf $PWD/packaging/linux/$ROOTDIR/

View File

@@ -50,7 +50,7 @@ PACKAGE_SIZE=`du --apparent-size -c "${DEB_BUILD_ROOT}/usr" | grep "total" | awk
sed "s/{VERSION}/$VERSION/" DEBIAN/control | sed "s/{SIZE}/$PACKAGE_SIZE/" > "${DEB_BUILD_ROOT}/DEBIAN/control"
# Build it in the temp directory, but place the finished deb in our starting directory
pushd "${DEB_BUILD_ROOT}"
pushd "${DEB_BUILD_ROOT}" >/dev/null
# Calculate md5sums and clean up the ./usr/ part of them
find . -type f -not -path "./DEBIAN/*" -print0 | xargs -0 -n1 md5sum | sed 's|\./usr/|/usr/|' > DEBIAN/md5sums
@@ -63,6 +63,6 @@ PKGVERSION=`echo $1 | sed "s/-/\\./g"`
fakeroot dpkg-deb -b . "$3/openra_${PKGVERSION}_all.deb"
# Clean up
popd
popd >/dev/null
rm -rf "${DEB_BUILD_ROOT}"