Skip to content

Commit ca02207

Browse files
committed
switch from ocamlbuild to jbuilder
1 parent 1fc9bf0 commit ca02207

File tree

9 files changed

+24
-44
lines changed

9 files changed

+24
-44
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ tmp
66
*.native
77
*.byte
88
*.install
9+
.merlin

Makefile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
# This makefile is used for dev convenience. It is removed
22
# by the distribution process.
33

4-
.PHONY: lib test doc clean
4+
.PHONY: build doc clean
55

6-
lib:
7-
topkg build
8-
9-
test:
10-
topkg build
11-
topkg test
6+
build:
7+
jbuilder build -j16
128

139
doc:
14-
topkg doc
10+
@echo "waiting for jbuilder odoc support"
11+
@#topkg doc
1512

1613
clean:
17-
topkg clean
14+
-rm -R _build
15+
-rm doc-ock-html.install

_tags

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

opam renamed to doc-ock-html.opam

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ homepage: "https://github.com/ocaml-doc/doc-ock-html"
55
doc: "https://ocaml-doc.github.com/doc-ock-html/"
66
license: "ISC"
77
dev-repo: "http://github.com/ocaml-doc/doc-ock-html.git"
8-
bug-reports: "https://github.com/ocaml-doc/doc-ock-html/issues"
8+
bug-reports: "https://github.com/ocaml-doc/odoc/issues"
99
tags: ["doc" "html" "ocaml" "org:ocaml-doc"]
1010

11-
available: [ ocaml-version >= "4.02.3" ]
11+
available: [ ocaml-version >= "4.03.0" ]
1212
depends: [
1313
"ocamlfind" {build}
14-
"ocamlbuild" {build}
15-
"topkg" {build & >= "0.7.5"}
14+
"jbuilder" {build}
1615
"doc-ock"
1716
"tyxml" {>= "4.0.0" }
1817
"xmlm" ]
1918

20-
build: [[
21-
"ocaml" "pkg/pkg.ml" "build"
22-
"--pinned" "%{pinned}%" ]]
19+
build: [
20+
["jbuilder" "subst"] {pinned}
21+
["jbuilder" "build" "-p" name "-j" jobs]
22+
]

pkg/META

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

pkg/pkg.ml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
#!/usr/bin/env ocaml
22
#use "topfind"
3-
#require "topkg"
4-
open Topkg
5-
6-
let () =
7-
Pkg.describe "doc-ock-html" @@ fun c ->
8-
Ok [ Pkg.mllib "src/doc-ock-html.mllib" ]
3+
#require "topkg-jbuilder.auto"

src/doc-ock-html.mllib

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

src/docOckHtmlHtml_tree.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class page_creator ?kind ~path content =
220220
meta ~a:[ a_name "viewport";
221221
a_content "width=device-width,initial-scale=1.0"; ] ();
222222
meta ~a:[ a_name "generator";
223-
a_content "doc-ock-html %%VERSION%%" ] ();
223+
a_content "doc-ock-html v1.0.0-1-g1fc9bf0" ] ();
224224
]
225225

226226
method heading : Html_types.h1_content_fun elt list =

src/jbuild

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(jbuild_version 1)
2+
3+
(library
4+
((name docOckHtml)
5+
(public_name doc-ock-html)
6+
(libraries (doc-ock xmlm tyxml))
7+
(flags (:standard -open StdLabels))))

0 commit comments

Comments
 (0)