diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |