From 6cddce9f15b435ef121f10b68174f4b0e7e46b48 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sat, 5 Oct 2024 20:31:25 +0100 Subject: [PATCH] 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. --- Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index c09c201..0e0af90 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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