Skip to content

Commit

Permalink
Makefile: release target
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrek committed May 19, 2012
1 parent 08fe20f commit c338e8c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,12 @@ setup.data:
.PHONY: build doc test all install uninstall reinstall clean distclean configure

# OASIS_STOP

VERSION=$(shell oasis query version)
NAME=ocaml-snappy-$(VERSION)

.PHONY: release
release:
git tag -a -m $(VERSION) v$(VERSION)
git archive --prefix=$(NAME)/ v$(VERSION) | tar --delete $(NAME)/web | gzip > $(NAME).tar.gz
gpg -a -b $(NAME).tar.gz

0 comments on commit c338e8c

Please sign in to comment.