From 8d0573e84a39879de381346546af233d53bc62b9 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Wed, 10 Jan 2024 17:48:11 +0000 Subject: fix release target; add verify-release --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e47ff4d..177549e 100644 --- a/Makefile +++ b/Makefile @@ -127,6 +127,8 @@ y.tab.c: parse.y lint: man -Tlint -Wstyle -l gmid.8 gmid.conf.5 gemexp.1 gg.1 titan.1 +PUBKEY = keys/gmid-${VERSION}.pub +PRIVKEY = set-PRIVKEY DISTFILES = .cirrus.yml .dockerignore .gitignore ChangeLog LICENSE \ Makefile README.md config.c configure crypto.c dirs.c fcgi.c \ ge.c gemexp.1 gg.1 gg.c gmid.8 gmid.c gmid.conf.5 gmid.h \ @@ -135,13 +137,18 @@ DISTFILES = .cirrus.yml .dockerignore .gitignore ChangeLog LICENSE \ utf8.c utils.c y.tab.c release: - sed -i -e '/^RELEASE=/s/no/yes' configure + sed -i -e '/^RELEASE=/s/no/yes/' configure ${MAKE} dist - sed -i -e '/^RELEASE=/s/yes/no' configure + sed -i -e '/^RELEASE=/s/yes/no/' configure + signify -S -e -m ${DISTNAME}.sha256 -s ${PRIVKEY} + +verify-release: + signify -C -p ${PUBKEY} -x ${DISTNAME}.sha256.sig dist: ${DISTNAME}.sha256 ${DISTNAME}.sha256: ${DISTNAME}.tar.gz + sha256 ${DISTNAME}.tar.gz > $@ ${DISTNAME}.tar.gz: ${DISTFILES} mkdir -p .dist/${DISTNAME}/ -- cgit v1.2.3