This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,8 @@
description = "Declarative definition of command line interfaces for OCaml"
version = "2.0.0+dune"
requires = ""
archive(byte) = "cmdliner.cma"
archive(native) = "cmdliner.cmxa"
plugin(byte) = "cmdliner.cma"
plugin(native) = "cmdliner.cmxs"
exists_if = "cmdliner.cma cmdliner.cmxa"

View file

@ -0,0 +1,17 @@
#!/usr/bin/env ocaml
#use "topfind"
#require "topkg"
open Topkg
(* This is only here for `topkg distrib`. Remove once
we switch to `b0 -- .release` *)
let distrib =
(* The default removes Makefile *)
let exclude_paths () = Ok [".git";".gitignore";".gitattributes";"_build"] in
Pkg.distrib ~exclude_paths ()
let () =
let opams = [Pkg.opam_file "cmdliner.opam"] in
Pkg.describe "cmdliner" ~distrib ~opams @@ fun c ->
Ok [ Pkg.mllib ~api:["Cmdliner"] "src/cmdliner.mllib" ]