Skip to content

Commit

Permalink
Add release runes
Browse files Browse the repository at this point in the history
  • Loading branch information
samoht committed Mar 24, 2015
1 parent 54e9bf9 commit 5709ae8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Expand Up @@ -39,3 +39,16 @@ configure:
.PHONY: build doc test all install uninstall reinstall clean distclean configure

# OASIS_STOP

VERSION = $(shell grep 'Version:' _oasis | sed 's/Version: *//')
NAME = $(shell grep 'Name:' _oasis | sed 's/Name: *//')
ARCHIVE = https://github.com/mirage/mirage-tcpip/archive/v$(VERSION).tar.gz

release:
git tag -a v$(VERSION) -m "Version $(VERSION)."
git push upstream v$(VERSION)
$(MAKE) pr

pr:
opam publish prepare $(NAME).$(VERSION) $(ARCHIVE)
OPAMYES=1 opam publish submit $(NAME).$(VERSION) && rm -rf $(NAME).$(VERSION)

0 comments on commit 5709ae8

Please sign in to comment.