From 49c9b93e80d4417d4d2110be63dd2a84e0936cd4 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Tue, 12 Jul 2016 17:57:58 +0200 Subject: [PATCH] Integrate release procedure in Makefile --- Makefile | 9 ++++++++- doc/RELEASING.md | 6 +----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 034ddac..bb98516 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,17 @@ all: nethogs decpcap_test test $(MAKE) -C src -f MakeApp.mk $@ $(MAKE) -C src -f MakeLib.mk $@ -.PHONY: tgz +.PHONY: tgz release tgz: clean git archive --prefix="nethogs-$(VERSION)/" -o "../nethogs-$(VERSION).tar.gz" HEAD +release: clean + git tag -s v$(RELEASE) -m "Release $(RELEASE)" + git archive --prefix="nethogs-$(RELEASE)/" -o "../nethogs-$(RELEASE).tar.gz" "v$(RELEASE)" + gpg --armor --detach-sign "../nethogs-$(RELEASE).tar.gz" + git push --tags + echo "now upload the detached signature to https://github.com/raboof/nethogs/releases/edit/v$VERSION" + check: $(MAKE) -C src -f MakeApp.mk $@ diff --git a/doc/RELEASING.md b/doc/RELEASING.md index 81b6dfb..b9b2358 100644 --- a/doc/RELEASING.md +++ b/doc/RELEASING.md @@ -1,5 +1 @@ -- remove '-SNAPSHOT' from the version in the Makefile -- commit this -- create a signed tag for this release -- increase the version number in the Makefile -- consider https://wiki.debian.org/Creating%20signed%20GitHub%20releases +RELEASE=0.8.4 make release