From 15a033eca89c68b0658f3c48b742b92f8048a109 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 23 Jul 2016 12:09:20 +0200 Subject: create make target for releases diff --git a/Makefile b/Makefile index e458673..029b2e9 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,23 @@ build: getlibs @$(GOCMD) install $(EXECUTEABLE) +release: +ifndef VER + $(error "you have to set the version: VER=?") +endif + @echo "will make release for version: $(VER)" + @echo " - release branch" + @git co -b rel-$(VER) + @echo " - release tag" + @git tag -a -m "Release $(VER)" $(VER) + @git co master + @echo " - debian changelog" + @DEBEMAIL="equinox@helsinki.at" dch -v $(VER)-1 + @DEBEMAIL="equinox@helsinki.at" dch --distribution unstable --release + @git commit -a -m "updated debian changelog after relase" + @echo "\ndone." + @echo "if everything went throught please run: git push --all && git push --tags" + clean: rm -rf pkg/*/$(EXECUTEABLE) rm -rf bin -- cgit v0.10.2