summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-23 10:09:20 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-23 10:09:20 (GMT)
commit15a033eca89c68b0658f3c48b742b92f8048a109 (patch)
treefa1675a6be17c8cf000e335cecb3ef65d7264197
parent3855e020464f7e814edcf156df71041856a1fecd (diff)
create make target for releases0.10.1rel-0.10.1
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
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