jon.recoil.org

Module OpamVersionSource

(generated) Current OPAM version

include OpamStd.ABSTRACT
Sourcetype t
Sourceval equal : OpamVersion.t -> OpamVersion.t -> bool
Sourceval of_string : string -> OpamVersion.t
Sourceval to_string : OpamVersion.t -> string
Sourcemodule Set : OpamStd.SET with type elt = OpamVersion.t
Sourcemodule Map : OpamStd.MAP with type key = OpamVersion.t
Sourceval current : OpamVersion.t

The current OPAM version

Extracts the major version

Major+minor version, strips the patch version

Sourceval current_nopatch : OpamVersion.t

The current OPAM version, truncated (only MAJOR.MINOR)

Sourceval git : unit -> OpamVersion.t option

The 'git' version of OPAM

Sourceval set_git : string -> unit

Side-effect to set the git version later in the build

Sourceval is_dev_version : unit -> bool

true if this is a development version of opam

Sourceval full : unit -> OpamVersion.t

The full version (current + git)

Sourceval magic : unit -> string

Magic string, always of length 8

Sourceval message : unit -> unit

Display the version message

Sourceval compare : OpamVersion.t -> OpamVersion.t -> int

Version comparison