summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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