Adjust dist-hook rule so that a failure to sign, when MAINTAINER is set, will be detected - and to add a note to the top of the manifest.

This commit is contained in:
Andrew Wood
2024-10-05 20:31:25 +01:00
parent ac44fd59e3
commit 6cddce9f15
+6 -1
View File
@@ -114,7 +114,12 @@ clean-local:
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 || :
if test -n "$(MAINTAINER)"; then \
cd "$(top_distdir)" \
&& { printf "%s\n\n" "Check file integrity with 'sha512sum -c MANIFEST && echo OK'."; \
find -type f -not -name MANIFEST -exec sha512sum '{}' ';' | sort -k 2; } \
| gpg -u "$(MAINTAINER)" --clearsign > MANIFEST; \
else true; fi
# "release" target - requires MAINTAINER variable to select GPG key.
release: distcheck