Integrate release procedure in Makefile

This commit is contained in:
Arnout Engelen
2016-07-12 17:57:58 +02:00
parent 9defe58674
commit 49c9b93e80
2 changed files with 9 additions and 6 deletions

View File

@@ -7,10 +7,17 @@ all: nethogs decpcap_test test
$(MAKE) -C src -f MakeApp.mk $@ $(MAKE) -C src -f MakeApp.mk $@
$(MAKE) -C src -f MakeLib.mk $@ $(MAKE) -C src -f MakeLib.mk $@
.PHONY: tgz .PHONY: tgz release
tgz: clean tgz: clean
git archive --prefix="nethogs-$(VERSION)/" -o "../nethogs-$(VERSION).tar.gz" HEAD 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: check:
$(MAKE) -C src -f MakeApp.mk $@ $(MAKE) -C src -f MakeApp.mk $@

View File

@@ -1,5 +1 @@
- remove '-SNAPSHOT' from the version in the Makefile RELEASE=0.8.4 make release
- 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