1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/env ocaml
#use "topfind"
#require "topkg"
open Topkg
let uutf = Conf.with_pkg "uutf"
let cmdliner = Conf.with_pkg "cmdliner"
let () =
let opams =
[Pkg.opam_file "opam" ~lint_deps_excluding:(Some ["b0"; "xmlm"; "uucd"])]
in
Pkg.describe "uunf" ~opams @@ fun c ->
let uutf = Conf.value c uutf in
let cmdliner = Conf.value c cmdliner in
Ok [ Pkg.mllib ~api:["Uunf"; "Uunf_string"] "src/uunf.mllib";
Pkg.bin ~cond:(uutf && cmdliner) "test/unftrip";
Pkg.test "test/test" ~args:(Cmd.v "test/NormalizationTest.txt");
Pkg.test "test/examples";
Pkg.doc "doc/index.mld" ~dst:"odoc-pages/index.mld";
Pkg.doc "test/examples.ml"; ]
|