Make packaging less noisy, + random cleanups
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user