Added a hook to write a signed MANIFEST file listing the SHA-512 hashes of all included files.

This commit is contained in:
Andrew Wood
2024-10-05 17:41:40 +01:00
parent 5c25f9270c
commit ac44fd59e3
+3
View File
@@ -113,6 +113,9 @@ clean-local:
# Convenience alias for "make check": "make test"
test: check
dist-hook:
test -n "$(MAINTAINER)" && cd "$(top_distdir)" && find -type f -not -name MANIFEST -exec sha512sum '{}' ';' | sort -k 2 | gpg -u "$(MAINTAINER)" --clearsign > MANIFEST || :
# "release" target - requires MAINTAINER variable to select GPG key.
release: distcheck
gpg --list-secret-keys 2>&1 | grep -F 'uid' | grep -Fq "$(MAINTAINER)"