Skip to content

Commit

Permalink
Remove odoc_html_support_files.ml (#1044)
Browse files Browse the repository at this point in the history
Removes the need to promote odoc_html_support_files.ml from the source tree.
ocaml-crunch is now a build-dependency.
  • Loading branch information
EmileTrotignon authored Dec 6, 2023
1 parent 5a054ff commit d00f696
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 621 deletions.
1 change: 1 addition & 0 deletions odoc-bench.opam
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ depends: [
"mdx" {>= "2.3.0"}
"core" {= "v0.16.2"}
"core_kernel" {= "v0.16.0"}
"crunch"
]
2 changes: 1 addition & 1 deletion odoc.opam
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ depends: [

"ppx_expect" {with-test}
"bos" {with-test}
"crunch" {with-test}
"crunch"

("ocaml" {< "4.07.0" & with-test} | "bisect_ppx" {with-test & > "2.5.0"})
]
Expand Down
42 changes: 20 additions & 22 deletions src/html_support_files/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,32 @@
(aliases runtest support-files)
(enabled_if
(> %{ocaml_version} 4.08))
(target odoc_html_support_files.ml)
(deps
(:x odoc_html_support_files.ml)
(glob_files *.js)
(glob_files *.css)
(glob_files_rec *.ttf)
(glob_files_rec *.woff2))
(action
(progn
(setenv
SOURCE_DATE_EPOCH
0
(run
ocaml-crunch
.
-e
js
-e
css
-e
ttf
-e
woff2
-o
%{x}.corrected
-m
plain
-s))
(diff? %{x} %{x}.corrected))))
(setenv
SOURCE_DATE_EPOCH
0
(run
ocaml-crunch
.
-e
js
-e
css
-e
ttf
-e
woff2
-o
odoc_html_support_files.ml
-m
plain
-s))))

(library
(name odoc_html_support_files)
Expand Down
Loading

0 comments on commit d00f696

Please sign in to comment.