diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-23 10:09:20 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-23 10:09:20 (GMT) |
commit | 15a033eca89c68b0658f3c48b742b92f8048a109 (patch) | |
tree | fa1675a6be17c8cf000e335cecb3ef65d7264197 /Makefile | |
parent | 3855e020464f7e814edcf156df71041856a1fecd (diff) |
create make target for releases0.10.1rel-0.10.1
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 |