build: Add `sum-announce' target.

* build-aux/GNUmakefile.in (sum-announce): New target.
(release): Check signature on release commit.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-05-02 11:24:06 +02:00
parent d1297688a8
commit 8f36311d1f
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1,5 +1,5 @@
# GNU Mes --- Maxwell Equations of Software # GNU Mes --- Maxwell Equations of Software
# Copyright © 2018,2019,2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> # Copyright © 2018,2019,2021,2022 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
# #
# This file is part of GNU Mes. # This file is part of GNU Mes.
# #
@ -337,9 +337,9 @@ tag:
# 2. Create signed tarball # 2. Create signed tarball
# make sign-dist # make sign-dist
# 3. Update Guix package description # 3. Update Guix package description
# - make release # make release
# 4. Finish announcement # 4. Finish announcement
# - Update doc/announce/ANNOUNCE-0.23 # - make sum-announce
# - doc: Post-release update. # - doc: Post-release update.
# - build-aux/GNUMakefile.in: gen-announce: update previous-version # - build-aux/GNUMakefile.in: gen-announce: update previous-version
# 5. Verify # 5. Verify
@ -377,6 +377,13 @@ gen-announce:
--news=NEWS\ --news=NEWS\
> doc/announce/ANNOUNCE-$(VERSION) > doc/announce/ANNOUNCE-$(VERSION)
sum-announce:
sed -i \
-e "s, xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $(PACKAGE)-$(VERSION).tar.gz, $(shell sha256sum $(PACKAGE)-$(VERSION).tar.gz)," \
-e "s, xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $(PACKAGE)-$(VERSION).tar.gz, $(shell sha1sum $(PACKAGE)-$(VERSION).tar.gz)," \
-e "s, xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $(PACKAGE)-$(VERSION).tar.gz, $(shell md5sum $(PACKAGE)-$(VERSION).tar.gz)," \
doc/announce/ANNOUNCE-$(VERSION)
installdirs: mkinstalldirs installdirs: mkinstalldirs
mkdir -p\ mkdir -p\
$(DESTDIR)$(bindir)\ $(DESTDIR)$(bindir)\