From 5c80f853464e260f4d6b4be5dbea9a0d122f692e Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Wed, 14 Mar 2018 23:02:45 +0800 Subject: [PATCH] Add Makefile helper for making releases --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 403f8aad..c9c358d1 100644 --- a/Makefile +++ b/Makefile @@ -58,4 +58,12 @@ update-sexp-parser: $(BIN) build --dev @update-sexp-parser --auto-promote .PHONY: default install uninstall reinstall clean test doc -.PHONY: promote accept-corrections +.PHONY: promote accept-corrections opam-release + +VERSION ?= $(shell git describe --tags --abbrev=0) +DIST_URI = https://github.com/ocaml/dune/releases/download/$(VERSION)/jbuilder-$(subst +,.,$(VERSION)).tbz +opam-release: + topkg distrib --skip-build --skip-lint --skip-tests + topkg publish distrib --verbose + topkg opam pkg --dist-uri='$DIST_URI' + topkg opam submit --dist-uri='$DIST_URI'