From 5b4b71ee15be342fe02bfdda6d90e03997896343 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Tue, 1 Oct 2024 10:58:23 -0400 Subject: [PATCH] chore: update ocamlformat --- .ocamlformat | 2 +- Makefile | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.ocamlformat b/.ocamlformat index 2124d7d..7818345 100644 --- a/.ocamlformat +++ b/.ocamlformat @@ -1,4 +1,4 @@ -version = 0.24.1 +version = 0.26.2 profile=conventional margin=80 if-then-else=k-r diff --git a/Makefile b/Makefile index f01440d..1e9dc66 100644 --- a/Makefile +++ b/Makefile @@ -17,4 +17,11 @@ WATCH?= @install @runtest watch: @dune build $(WATCH )-w -.PHONY: all build test watch +VERSION=$(shell awk '/^version:/ {print $$2}' ezcurl.opam) + +update_next_tag: + @echo "update version to $(VERSION)..." + sed -i "s/NEXT_VERSION/$(VERSION)/g" $(wildcard src/**/*.ml) $(wildcard src/**/*.mli) + sed -i "s/NEXT_RELEASE/$(VERSION)/g" $(wildcard src/**/*.ml) $(wildcard src/**/*.mli) + +.PHONY: all build test watch update_next_tag