Fix the issues with filenames for the md5sums

Lintian reported missing md5sums for all files under usr/ and reported the
existence of md5sums for all files under /usr that we're not in the
package.
This commit is contained in:
Paul van Tilburg
2016-12-30 14:40:34 +01:00
parent 41dfaaf564
commit 84c5a72986

View File

@@ -61,7 +61,7 @@ sed "s/{VERSION}/$VERSION/" DEBIAN/control | sed "s/{SIZE}/$PACKAGE_SIZE/" > "${
pushd "${DEB_BUILD_ROOT}" >/dev/null pushd "${DEB_BUILD_ROOT}" >/dev/null
# Calculate md5sums and clean up the ./usr/ part of them # 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 find . -type f -not -path "./DEBIAN/*" -print0 | xargs -0 -n1 md5sum | sed 's|\./usr/|usr/|' > DEBIAN/md5sums
chmod 0644 DEBIAN/md5sums chmod 0644 DEBIAN/md5sums
# Replace any dashes in the version string with periods # Replace any dashes in the version string with periods