From 3a8679869b214d6617aee9388623885648740c04 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Tue, 12 Jul 2022 21:01:57 -0400 Subject: [PATCH] update doc tag --- Makefile | 6 ++++++ src/core/Config.mli | 8 ++++---- src/core/Plugin.mli | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 10cb4a4..39307e6 100644 --- a/Makefile +++ b/Makefile @@ -18,3 +18,9 @@ watch: doc: @dune build @doc +VERSION=$(shell awk '/^version:/ {print $$2}' calculon.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) diff --git a/src/core/Config.mli b/src/core/Config.mli index 95be279..62663e0 100644 --- a/src/core/Config.mli +++ b/src/core/Config.mli @@ -20,14 +20,14 @@ type t = { prefix: string; (** prefix for commands *) db_file: string; - (** Database path. @since NEXT_RELEASE *) + (** Database path. @since 0.8 *) _hidden: hidden; (** This field is present to prevent the user from using a literal record to build configuration. This way, adding new fields doesn't break existing code. - @since NEXT_RELEASE *) + @since 0.8 *) } (** Bot configuration. *) @@ -53,7 +53,7 @@ val parse : t -> string array -> t (** [parse conf args] is the same as [conf], but some command line arguments can override its fields - @param extra_args additional command line arguments for {!Arg} (since NEXT_RELEASE) + @param extra_args additional command line arguments for {!Arg} (since 0.8) *) val of_argv : @@ -61,5 +61,5 @@ val of_argv : unit -> t (** Parsed from {!Sys.argv} Will call {!exit} if [Arg.parse] fails - @param extra_args additional command line arguments for {!Arg} (since NEXT_RELEASE) + @param extra_args additional command line arguments for {!Arg} (since 0.8) *) diff --git a/src/core/Plugin.mli b/src/core/Plugin.mli index 168f38e..0159b92 100644 --- a/src/core/Plugin.mli +++ b/src/core/Plugin.mli @@ -87,7 +87,7 @@ val db_backed : t (** Make a stateful plugin that is backed by some tables in the database. See {!db_backed} for more details. - @since NEXT_RELEASE *) + @since 0.8 *) (** {2 Collection of Plugins} *) module Set : sig