Integrate release procedure in Makefile
This commit is contained in:
9
Makefile
9
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 $@
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user