Skip to content

Commit

Permalink
Integrate release procedure in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
raboof committed Jul 12, 2016
1 parent 9defe58 commit 49c9b93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@

Expand Down
6 changes: 1 addition & 5 deletions doc/RELEASING.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 49c9b93

Please sign in to comment.