mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 5d99bfdd676c0b77ac9f874af90100f993c9a50e
parent 9bb5795d1d8ce5f1525c99255d628baf9cf51d90
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Fri, 23 Jun 2017 19:40:21 +0200

GNUmakefile: add release and sign targets

Diffstat:
GNUmakefile | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/GNUmakefile b/GNUmakefile @@ -36,7 +36,7 @@ mmime : slurp.o museragent: FRC @printf '#!/bin/sh\nprintf "User-Agent: mblaze/%s (%s)\\n"\n' \ - "$$(git describe --always --dirty 2>/dev/null || cat VERSION)" \ + "$$(git describe --always --dirty 2>/dev/null | sed 's/^v//' || cat VERSION)" \ "$$(date +%Y-%m-%d)" >$@ @chmod +x $@ @@ -62,4 +62,14 @@ install: FRC all install -m0644 man/*.5 $(DESTDIR)$(MANDIR)/man5 install -m0644 man/*.7 $(DESTDIR)$(MANDIR)/man7 +release: + VERSION=$$(git describe --tags | sed 's/^v//;s/-[^.]*$$//') && \ + git archive --prefix=mblaze-$$VERSION/ -o mblaze-$$VERSION.tar.gz HEAD + +sign: + VERSION=$$(git describe --tags | sed 's/^v//;s/-[^.]*$$//') && \ + gpg --armor --detach-sign mblaze-$$VERSION.tar.gz && \ + signify -S -s ~/.signify/mblaze.sec -m mblaze-$$VERSION.tar.gz && \ + sed -i '1cuntrusted comment: verify with mblaze.pub' mblaze-$$VERSION.tar.gz.sig + FRC: