Merge pull request #8083 from obrakmann/separate_download_dir

Closes #8069
This commit is contained in:
Matthias Mailänder
2015-05-10 21:30:38 +02:00
24 changed files with 172 additions and 135 deletions

View File

@@ -29,12 +29,12 @@ make install-linux-appdata 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}"