Skip to content

Commit 9aface1

Browse files
committed
Generate library_mlds if they are not there
1 parent f93a985 commit 9aface1

36 files changed

+6
-63
lines changed

doc/driver.mld

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,12 @@ let compile_mlds () =
630630
update_api_reference_page ();
631631
let mkpage x = "page-\"" ^ x ^ "\"" in
632632
let mkmod x = "module-" ^ String.capitalize_ascii x in
633-
let mkmld x = Fpath.(add_ext "mld" (v x)) in
633+
let mkmld x =
634+
let f = Fpath.(add_ext "mld" (v x)) in
635+
if not (Bos.OS.File.exists f |> get_ok) then
636+
(Bos.OS.File.write_lines f [Printf.sprintf "{0 %s}" x] |> get_ok);
637+
f
638+
in
634639
ignore
635640
(compile (mkmld "odoc")
636641
("src-source" :: "page-deps" :: List.map mkpage (odoc_libraries @ extra_docs)));

doc/library_mlds/astring.mld

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/library_mlds/base_bigstring.mld

Lines changed: 0 additions & 2 deletions
This file was deleted.

doc/library_mlds/camlp-streams.mld

Lines changed: 0 additions & 2 deletions
This file was deleted.

doc/library_mlds/fieldslib.mld

Lines changed: 0 additions & 2 deletions
This file was deleted.

doc/library_mlds/int_repr.mld

Lines changed: 0 additions & 2 deletions
This file was deleted.

doc/library_mlds/ocaml-compiler-libs.mld

Lines changed: 0 additions & 2 deletions
This file was deleted.

doc/library_mlds/parsexp.mld

Lines changed: 0 additions & 2 deletions
This file was deleted.

doc/library_mlds/ppx_bench.runtime-lib.mld

Lines changed: 0 additions & 2 deletions
This file was deleted.

doc/library_mlds/ppx_compare.mld

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)