Skip to content

Commit 1e69e26

Browse files
Merge pull request #274 from gpetiot/remove-mdx-binary
Do not install deprecated mdx binary anymore
2 parents f91dfcd + 69d6584 commit 1e69e26

File tree

7 files changed

+6
-23
lines changed

7 files changed

+6
-23
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
- Dropped compatibility with older OCaml versions. The minimal supported range
1818
is 4.08 to 4.13 now (#345, @Leonidas-from-XIV)
19+
- Do not install deprecated `mdx` binary anymore (#274, @gpetiot)
1920

2021
#### Security
2122

bin/dune

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,3 @@
99
(package mdx)
1010
(modules :standard \ cli)
1111
(libraries cli mdx))
12-
13-
(install
14-
(section bin)
15-
(files
16-
(main.exe as mdx)))

bin/main.ml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,4 @@ let main =
2727
( Term.(ret (const main $ Cli.setup)),
2828
Term.info "ocaml-mdx" ~version:"%%VERSION%%" ~doc ~exits ~man )
2929

30-
let main () = Term.(exit_status @@ eval_choice main cmds)
31-
32-
let main () =
33-
if String.compare Sys.argv.(0) "mdx" == 0 then
34-
Format.eprintf
35-
"\x1b[0;1mWarning\x1b[0m: 'mdx' is deprecated and will one day be removed.\n\
36-
\ Use 'ocaml-mdx' instead\n\
37-
%!";
38-
main ()
39-
40-
let () = main ()
30+
let () = Term.(exit_status @@ eval_choice main cmds)

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
(name mdx)
1818
(synopsis "Executable code blocks inside markdown files")
1919
(description
20-
"`ocaml-mdx` allows to execute code blocks inside markdown files.\nThere are (currently) two sub-commands, corresponding\nto two modes of operations: pre-processing (`ocaml-mdx pp`)\nand tests (`ocaml-mdx test`).\n\nThe pre-processor mode allows to mix documentation and code,\nand to practice \"literate programming\" using markdown and OCaml.\n\nThe test mode allows to ensure that shell scripts and OCaml fragments\nin the documentation always stays up-to-date.\n\n`ocaml-mdx` is released as two binaries called `ocaml-mdx` and `mdx` which are\nthe same, mdx being the deprecated name, kept for now for compatibility.")
20+
"`ocaml-mdx` allows to execute code blocks inside markdown files.\nThere are (currently) two sub-commands, corresponding\nto two modes of operations: pre-processing (`ocaml-mdx pp`)\nand tests (`ocaml-mdx test`).\n\nThe pre-processor mode allows to mix documentation and code,\nand to practice \"literate programming\" using markdown and OCaml.\n\nThe test mode allows to ensure that shell scripts and OCaml fragments\nin the documentation always stays up-to-date.")
2121
(depends
2222
(ocaml
2323
(>= 4.08.0))

mdx.opam

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ The pre-processor mode allows to mix documentation and code,
1111
and to practice "literate programming" using markdown and OCaml.
1212

1313
The test mode allows to ensure that shell scripts and OCaml fragments
14-
in the documentation always stays up-to-date.
15-
16-
`ocaml-mdx` is released as two binaries called `ocaml-mdx` and `mdx` which are
17-
the same, mdx being the deprecated name, kept for now for compatibility."""
14+
in the documentation always stays up-to-date."""
1815
maintainer: ["Thomas Gazagnaire <[email protected]>"]
1916
authors: ["Thomas Gazagnaire <[email protected]>"]
2017
license: "ISC"

test/bin/mdx-test/misc/no-such-file/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
test.output
44
(with-accepted-exit-codes
55
(not 0)
6-
(run %{bin:mdx} test foo))))
6+
(run %{bin:ocaml-mdx} test foo))))
77

88
(rule
99
(alias runtest)

test/bin/mdx-test/misc/no-such-prelude/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
test.output
44
(with-accepted-exit-codes
55
(not 0)
6-
(run %{bin:mdx} test test.md --prelude "env:foo"))))
6+
(run %{bin:ocaml-mdx} test test.md --prelude "env:foo"))))
77

88
(rule
99
(alias runtest)

0 commit comments

Comments
 (0)