Debian Codegraph @

vendor/opam/src/core/opamVersion.mli

raw
1 (**************************************************************************)
2 (* *)
3 (* Copyright 2012-2016 OCamlPro *)
4 (* Copyright 2012 INRIA *)
5 (* *)
6 (* All rights reserved. This file is distributed under the terms of the *)
7 (* GNU Lesser General Public License version 2.1, with the special *)
8 (* exception on linking described in the file LICENSE. *)
9 (* *)
10 (**************************************************************************)
11
12 (** (generated) Current OPAM version *)
13
14 include OpamStd.ABSTRACT
15
16 (** The current OPAM version *)
17 val current: t
18
19 (** Extracts the major version *)
20 val major: t -> t
21
22 (** Major+minor version, strips the patch version *)
23 val nopatch: t -> t
24
25 (** The current OPAM version, truncated (only MAJOR.MINOR) *)
26 val current_nopatch: t
27
28 (** The 'git' version of OPAM *)
29 val git: unit -> t option
30
31 (** Side-effect to set the git version later in the build *)
32 val set_git: string -> unit
33
34 (** [true] if this is a development version of opam *)
35 val is_dev_version : unit -> bool
36
37 (** The full version (current + git) *)
38 val full: unit -> t
39
40 (** Magic string, always of length 8 *)
41 val magic: unit -> string
42
43 (** Display the version message *)
44 val message: unit -> unit
45
46 (** Version comparison *)
47 val compare: t -> t -> int