Skip to content

Commit d00f696

Browse files
Remove odoc_html_support_files.ml (#1044)
Removes the need to promote odoc_html_support_files.ml from the source tree. ocaml-crunch is now a build-dependency.
1 parent 5a054ff commit d00f696

File tree

4 files changed

+22
-621
lines changed

4 files changed

+22
-621
lines changed

odoc-bench.opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ depends: [
4343
"mdx" {>= "2.3.0"}
4444
"core" {= "v0.16.2"}
4545
"core_kernel" {= "v0.16.0"}
46+
"crunch"
4647
]

odoc.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ depends: [
5757

5858
"ppx_expect" {with-test}
5959
"bos" {with-test}
60-
"crunch" {with-test}
60+
"crunch"
6161

6262
("ocaml" {< "4.07.0" & with-test} | "bisect_ppx" {with-test & > "2.5.0"})
6363
]

src/html_support_files/dune

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,32 @@
55
(aliases runtest support-files)
66
(enabled_if
77
(> %{ocaml_version} 4.08))
8+
(target odoc_html_support_files.ml)
89
(deps
9-
(:x odoc_html_support_files.ml)
1010
(glob_files *.js)
1111
(glob_files *.css)
1212
(glob_files_rec *.ttf)
1313
(glob_files_rec *.woff2))
1414
(action
15-
(progn
16-
(setenv
17-
SOURCE_DATE_EPOCH
18-
0
19-
(run
20-
ocaml-crunch
21-
.
22-
-e
23-
js
24-
-e
25-
css
26-
-e
27-
ttf
28-
-e
29-
woff2
30-
-o
31-
%{x}.corrected
32-
-m
33-
plain
34-
-s))
35-
(diff? %{x} %{x}.corrected))))
15+
(setenv
16+
SOURCE_DATE_EPOCH
17+
0
18+
(run
19+
ocaml-crunch
20+
.
21+
-e
22+
js
23+
-e
24+
css
25+
-e
26+
ttf
27+
-e
28+
woff2
29+
-o
30+
odoc_html_support_files.ml
31+
-m
32+
plain
33+
-s))))
3634

3735
(library
3836
(name odoc_html_support_files)

0 commit comments

Comments
 (0)