Skip to content

Commit ba149d5

Browse files
committed
Commit the generated manpage.mld
Allows to build the documentation on <4.10, as the generating program can't run on these versions. Useful feedback when modifying the CLI. Reduce the complexity of the Dune rules for building the doc. Might allow the reference driver to build it, for example.
1 parent 6fd4447 commit ba149d5

File tree

2 files changed

+1074
-1
lines changed

2 files changed

+1074
-1
lines changed

doc/dune

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
(rule
22
(action
33
(with-stdout-to
4-
manpage.mld
4+
manpage.gen.mld
55
(pipe-stdout
66
(run odoc)
77
(run gen_manpage/gen_manpage.exe)))))
88

9+
(rule
10+
(alias runtest)
11+
(enabled_if
12+
(> %{ocaml_version} 4.10))
13+
(action
14+
(diff manpage.mld manpage.gen.mld)))
15+
916
(documentation
1017
(package odoc)
1118
(mld_files

0 commit comments

Comments
 (0)