forked from ocaml/opam
/
opamVersion.ml
48 lines (35 loc) · 1.6 KB
/
opamVersion.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
(***********************************************************************)
(* *)
(* Copyright 2012 OCamlPro *)
(* Copyright 2012 INRIA *)
(* *)
(* All rights reserved. This file is distributed under the terms of *)
(* the GNU Public License version 3.0. *)
(* *)
(* OPAM is distributed in the hope that it will be useful, *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)
(* GNU General Public License for more details. *)
(* *)
(***********************************************************************)
type t = string
let to_string x = x
let of_string x = x
let compare = Debian.Version.compare
module O = struct
type t = string
let to_string = to_string
let compare = compare
end
module Set = OpamMisc.Set.Make(O)
module Map = OpamMisc.Map.Make(O)
let current_raw = "0.7.7"
let current = of_string current_raw
let message () =
Printf.printf "\
%s version %s
Copyright (C) 2012 OCamlPro - INRIA
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
Sys.argv.(0) current_raw;
exit 0