build: Simple signature check for dist and release.

* build-aux/GNUmakefile.in (check-signature): New target.
(dist, release): Depend on it.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-05-02 11:37:27 +02:00
parent 8f36311d1f
commit f71e333d61
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 5 additions and 2 deletions

View File

@ -282,7 +282,10 @@ GIT_LS_FILES:=find
MTIME:=0
endif
dist: $(TARBALL)
check-signature:
git show HEAD --show-signature |grep 'gpg: Good signature'
dist: check-signature $(TARBALL)
sign-dist: $(TARBALL)
gpg -a --output $(TARBALL).sig --detach-sig $(TARBALL)
@ -358,7 +361,7 @@ tag:
guix-build:
./pre-inst-env $(GUIX) build mes@$(VERSION) --with-source=$(TARBALL)
release: update-hash
release: check-signature update-hash
git commit -m 'guix: mes: Update to $(VERSION).' \
-m '* guix/git/mes.scm (mes)[source]: Update to $(VERSION).' \
guix/git/mes.scm