My working unpac repository

Handle cmdliner 1.1.0 deprecations.

+12 -8
+1 -1
B0.ml
··· 47 47 ["unicode"; "text"; "utf-8"; "utf-16"; "codec"; "org:erratique"] 48 48 |> add B0_opam.Meta.depopts ["cmdliner", ""] 49 49 |> add B0_opam.Meta.conflicts 50 - [ "cmdliner", {|< "0.9.8"|}] 50 + [ "cmdliner", {|< "1.1.0"|}] 51 51 |> add B0_opam.Meta.depends 52 52 [ "ocaml", {|>= "4.03.0"|}; 53 53 "ocamlfind", {|build|};
+4
CHANGES.md
··· 1 + 2 + 3 + - Handle cmdliner 1.1.0 deprecations. 4 + 1 5 v1.0.3 2022-02-03 2 6 ----------------- 3 7
+2 -2
opam
··· 14 14 "ocamlbuild" {build} 15 15 "topkg" {build & >= "1.0.3"}] 16 16 depopts: ["cmdliner"] 17 - conflicts: ["cmdliner" {< "0.9.8"}] 17 + conflicts: ["cmdliner" {< "1.1.0"}] 18 18 build: [["ocaml" "pkg/pkg.ml" "build" "--dev-pkg" "%{dev}%" 19 19 "--with-cmdliner" "%{cmdliner:installed}%"]] 20 20 description: """ ··· 26 26 Functions are also provided to fold over the characters of UTF encoded 27 27 OCaml string values and to directly encode characters in OCaml 28 28 Buffer.t values. **Note** that since OCaml 4.14, that functionality 29 - can be found in the Stdlib and you are encouraged to migrate to. 29 + can be found in the Stdlib and you are encouraged to migrate to it. 30 30 31 31 Uutf has no dependency and is distributed under the ISC license. 32 32
+5 -5
test/utftrip.ml
··· 382 382 See http://erratique.ch/software/uutf for contact 383 383 information."; ] 384 384 in 385 - Term.(pure do_cmd $ cmd $ file $ sin $ sout $ use_unix $ usize $ 386 - ienc $ oenc $ nln $ rseed $ rcount), 387 - Term.info "utftrip" ~version:"%%VERSION%%" ~doc ~man 385 + Cmd.v (Cmd.info "utftrip" ~version:"%%VERSION%%" ~doc ~man) 386 + Term.(const do_cmd $ cmd $ file $ sin $ sout $ use_unix $ usize $ 387 + ienc $ oenc $ nln $ rseed $ rcount) 388 388 389 - let () = match Term.eval cmd with 390 - | `Error _ -> exit 1 389 + let () = match Cmd.eval_value cmd with 390 + | Error _ -> exit 1 391 391 | _ -> if !input_malformed then exit 2 else exit 0 392 392 393 393 (*---------------------------------------------------------------------------