tangled
alpha
login
or
join now
anil.recoil.org
/
unpac-unpac
0
fork
atom
The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork
atom
overview
issues
pulls
pipelines
Minimize pkg/pkg.ml.
Daniel Bünzli
1 year ago
ac3723e8
ce43826f
+6
-35
2 changed files
expand all
collapse all
unified
split
_tags
pkg
pkg.ml
+1
-2
_tags
···
1
1
true : bin_annot, safe_string
2
2
<_b0> : -traverse
3
3
-
<src> : include
4
4
-
<test> : include
3
3
+
<src> : include
+5
-33
pkg/pkg.ml
···
3
3
#require "topkg"
4
4
open Topkg
5
5
6
6
-
let test t = Pkg.flatten [ Pkg.test ~run:false t; Pkg.doc (t ^ ".ml")]
7
7
-
8
8
-
let distrib =
9
9
-
let exclude_paths () = Ok [".git";".gitignore";".gitattributes";"_build"] in
10
10
-
Pkg.distrib ~exclude_paths ()
11
11
-
12
12
-
let opams =
13
13
-
[Pkg.opam_file "cmdliner.opam"]
6
6
+
(* This is only here for `topkg distrib`. Remove once
7
7
+
we switch to `b0 -- .release` *)
14
8
15
9
let () =
16
16
-
Pkg.describe ~distrib "cmdliner" ~opams @@ fun c ->
17
17
-
Ok [ Pkg.mllib ~api:["Cmdliner"] "src/cmdliner.mllib";
18
18
-
Pkg.doc "doc/index.mld" ~dst:"odoc-pages/index.mld";
19
19
-
Pkg.doc "doc/tutorial.mld" ~dst:"odoc-pages/tutorial.mld";
20
20
-
Pkg.doc "doc/cli.mld" ~dst:"odoc-pages/cli.mld";
21
21
-
Pkg.doc "doc/examples.mld" ~dst:"odoc-pages/examples.mld";
22
22
-
Pkg.doc "doc/tool_man.mld" ~dst:"odoc-pages/tool_man.mld";
23
23
-
test "test/chorus";
24
24
-
test "test/cp_ex";
25
25
-
test "test/darcs_ex";
26
26
-
test "test/revolt";
27
27
-
test "test/rm_ex";
28
28
-
test "test/tail_ex";
29
29
-
Pkg.test ~run:false "test/test_dupe_stdopts";
30
30
-
Pkg.test ~run:false "test/test_nest";
31
31
-
Pkg.test ~run:false "test/test_man";
32
32
-
Pkg.test ~run:false "test/test_man_utf8";
33
33
-
Pkg.test ~run:false "test/test_pos";
34
34
-
Pkg.test ~run:false "test/test_pos_rev";
35
35
-
Pkg.test ~run:false "test/test_pos_all";
36
36
-
Pkg.test ~run:false "test/test_pos_left";
37
37
-
Pkg.test ~run:false "test/test_pos_req";
38
38
-
Pkg.test ~run:false "test/test_opt_req";
39
39
-
Pkg.test ~run:false "test/test_term_dups";
40
40
-
Pkg.test ~run:false "test/test_with_used_args"; ]
10
10
+
let opams = [Pkg.opam_file "cmdliner.opam"] in
11
11
+
Pkg.describe "cmdliner" ~opams @@ fun c ->
12
12
+
Ok [ Pkg.mllib ~api:["Cmdliner"] "src/cmdliner.mllib" ]