Commit
+8 -11 +/-4 browse
1 | diff --git a/bin/dune b/bin/dune |
2 | index 6feb0e1..ce01fde 100644 |
3 | --- a/bin/dune |
4 | +++ b/bin/dune |
5 | @@ -4,10 +4,3 @@ |
6 | (libraries note_lib) |
7 | (modes exe) |
8 | (ocamlopt_flags)) |
9 | - |
10 | - (install |
11 | - (section man) |
12 | - (files ../doc/note.1)) |
13 | - (install |
14 | - (section share) |
15 | - (files ../completion/note)) |
16 | diff --git a/lib/cmd.ml b/lib/cmd.ml |
17 | index f92e065..e85a23d 100644 |
18 | --- a/lib/cmd.ml |
19 | +++ b/lib/cmd.ml |
20 | @@ -216,8 +216,13 @@ let sync = |
21 | let on_sync = Config.get_string_opt cfg `OnSync in |
22 | Sync.sync on_sync)) |
23 | |
24 | + let version = |
25 | + (match Build_info.V1.version () with |
26 | + | None -> "n/a" |
27 | + | Some v -> Build_info.V1.Version.to_string v) |
28 | + |
29 | let run = |
30 | - Command.run ~version:"%%VERSION%%" |
31 | + Command.run ~version:version ~build_info:"" |
32 | (Command.group ~summary:"Note is a simple CLI based note taking application" |
33 | [ |
34 | ("cat", cat_note); |
35 | diff --git a/lib/dune b/lib/dune |
36 | index 0c98991..32b55d4 100644 |
37 | --- a/lib/dune |
38 | +++ b/lib/dune |
39 | @@ -2,4 +2,4 @@ |
40 | (name note_lib) |
41 | (preprocess |
42 | (pps ppx_jane)) |
43 | - (libraries ANSITerminal base core ezjsonm omd stdio yaml)) |
44 | + (libraries ANSITerminal base core dune-build-info ezjsonm omd stdio yaml)) |
45 | diff --git a/note.opam b/note.opam |
46 | index 990a468..810e06e 100644 |
47 | --- a/note.opam |
48 | +++ b/note.opam |
49 | @@ -1,6 +1,5 @@ |
50 | - version: "%%VERSION%%" |
51 | opam-version: "2.0" |
52 | - version: "0.0.2" |
53 | + version: "0.5.8" |
54 | synopsis: "Note is a simple CLI based note taking program" |
55 | description: "Note is a simple CLI based note taking program" |
56 | maintainer: ["Kevin Schoon <kevinschoon@gmail.com>"] |