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
Switch to jbuilder
Rudi Grinberg
8 years ago
9e407d95
1d3055f8
+25
-173
13 changed files
expand all
collapse all
unified
split
.gitignore
.merlin
_tags
base64.opam
build
doc
api.odocl
dev.odocl
style.css
pkg
META
pkg.ml
src
b64.mllib
jbuild
test
jbuild
+1
.gitignore
···
7
7
*.install
8
8
*.native
9
9
*.byte
10
10
+
.merlin
-4
.merlin
···
1
1
-
PKG bytes
2
2
-
S src
3
3
-
S test
4
4
-
B _build/**
-5
_tags
···
1
1
-
true : annot, bin_annot, safe_string, package(bytes)
2
2
-
true : principal, debug
3
3
-
<test/*> : package(alcotest bos rresult)
4
4
-
<src> : include
5
5
-
<test> : include
-24
build
···
1
1
-
#!/bin/sh
2
2
-
# This script is only used for developement. It is removed by the
3
3
-
# distribution process.
4
4
-
5
5
-
set -e
6
6
-
7
7
-
OCAMLBUILD=${OCAMLBUILD:="ocamlbuild -use-ocamlfind -classic-display \
8
8
-
-tag debug"}
9
9
-
10
10
-
action ()
11
11
-
{
12
12
-
case $1 in
13
13
-
default) topkg build ;;
14
14
-
test|tests) topkg build && topkg test ;;
15
15
-
doc) shift; topkg doc --dev $* ;;
16
16
-
api-doc) shift; topkg doc $* ;;
17
17
-
clean) topkg clean ;;
18
18
-
*) $OCAMLBUILD $* ;;
19
19
-
esac
20
20
-
}
21
21
-
22
22
-
if [ $# -eq 0 ];
23
23
-
then action default ;
24
24
-
else action $*; fi
-1
doc/api.odocl
···
1
1
-
B64
-1
doc/dev.odocl
···
1
1
-
B64
-112
doc/style.css
···
1
1
-
/* Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
2
2
-
Distributed under the ISC license, see terms at the end of the file. */
3
3
-
4
4
-
/* Reset a few things. */
5
5
-
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,
6
6
-
a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,
7
7
-
small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,
8
8
-
form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td
9
9
-
{ margin: 0; padding: 0; border: 0 none; outline: 0; font-size: 100%;
10
10
-
font-weight: inherit; font-style:inherit; font-family:inherit;
11
11
-
line-height: inherit; vertical-align: baseline; text-align:inherit;
12
12
-
color:inherit; background: transparent; }
13
13
-
14
14
-
table { border-collapse: collapse; border-spacing: 0; }
15
15
-
16
16
-
/* Basic page layout */
17
17
-
18
18
-
body { font: normal 10pt/1.375em helvetica, arial, sans-serif; text-align:left;
19
19
-
margin: 1.375em 10%; min-width: 40ex; max-width: 72ex;
20
20
-
color: black; background: transparent /* url(line-height-22.gif) */; }
21
21
-
22
22
-
b { font-weight: bold }
23
23
-
em { font-style: italic }
24
24
-
25
25
-
tt, code, pre { font-family: WorkAroundWebKitAndMozilla, monospace;
26
26
-
font-size: 1em; }
27
27
-
pre code { font-size : inherit; }
28
28
-
.codepre { margin-bottom:1.375em /* after code example we introduce space. */ }
29
29
-
30
30
-
.superscript,.subscript
31
31
-
{ font-size : 0.813em; line-height:0; margin-left:0.4ex;}
32
32
-
.superscript { vertical-align: super; }
33
33
-
.subscript { vertical-align: sub; }
34
34
-
35
35
-
/* ocamldoc markup workaround hacks */
36
36
-
37
37
-
hr, hr + br, div + br, center + br, span + br, ul + br, ol + br, pre + br
38
38
-
{ display: none } /* annoying */
39
39
-
40
40
-
div.info + br { display:block}
41
41
-
42
42
-
.codepre br + br { display: none }
43
43
-
h1 + pre { margin-bottom:1.375em} /* Toplevel module description */
44
44
-
45
45
-
/* Sections and document divisions */
46
46
-
47
47
-
/* .navbar { margin-bottom: -1.375em } */
48
48
-
h1 { font-weight: bold; font-size: 1.5em; /* margin-top:1.833em; */
49
49
-
margin-top:0.917em; padding-top:0.875em;
50
50
-
border-top-style:solid; border-width:1px; border-color:#AAA; }
51
51
-
h2 { font-weight: bold; font-size: 1.313em; margin-top: 1.048em }
52
52
-
h3 { font-weight: bold; font-size: 1.125em; margin-top: 1.222em }
53
53
-
h3 { font-weight: bold; font-size: 1em; margin-top: 1.375em}
54
54
-
h4 { font-style: italic; }
55
55
-
56
56
-
/* Used by OCaml's own library documentation. */
57
57
-
h6 { font-weight: bold; font-size: 1.125em; margin-top: 1.222em }
58
58
-
.h7 { font-weight: bold; font-size: 1em; margin-top: 1.375em }
59
59
-
60
60
-
p { margin-top: 1.375em }
61
61
-
pre { margin-top: 1.375em }
62
62
-
.info { margin: 0.458em 0em -0.458em 2em;}/* Description of types values etc. */
63
63
-
td .info { margin:0; padding:0; margin-left: 2em;} /* Description in indexes */
64
64
-
65
65
-
ul, ol { margin-top:0.688em; padding-bottom:0.687em;
66
66
-
list-style-position:outside}
67
67
-
ul + p, ol + p { margin-top: 0em }
68
68
-
ul { list-style-type: square }
69
69
-
70
70
-
71
71
-
/* h2 + ul, h3 + ul, p + ul { } */
72
72
-
ul > li { margin-left: 1.375em; }
73
73
-
ol > li { margin-left: 1.7em; }
74
74
-
/* Links */
75
75
-
76
76
-
a, a:link, a:visited, a:active, a:hover { color : #00B; text-decoration: none }
77
77
-
a:hover { text-decoration : underline }
78
78
-
*:target {background-color: #FFFF99;} /* anchor highlight */
79
79
-
80
80
-
/* Code */
81
81
-
82
82
-
.keyword { font-weight: bold; }
83
83
-
.comment { color : red }
84
84
-
.constructor { color : green }
85
85
-
.string { color : brown }
86
86
-
.warning { color : red ; font-weight : bold }
87
87
-
88
88
-
/* Functors */
89
89
-
90
90
-
.paramstable { border-style : hidden ; padding-bottom:1.375em}
91
91
-
.paramstable code { margin-left: 1ex; margin-right: 1ex }
92
92
-
.sig_block {margin-left: 1em}
93
93
-
94
94
-
/* Images */
95
95
-
96
96
-
img { margin-top: 1.375em }
97
97
-
98
98
-
/*---------------------------------------------------------------------------
99
99
-
Copyright (c) 2016 Daniel C. Bünzli
100
100
-
101
101
-
Permission to use, copy, modify, and/or distribute this software for any
102
102
-
purpose with or without fee is hereby granted, provided that the above
103
103
-
copyright notice and this permission notice appear in all copies.
104
104
-
105
105
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
106
106
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
107
107
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
108
108
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
109
109
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
110
110
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
111
111
-
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
112
112
-
---------------------------------------------------------------------------*/
+6
-6
opam
base64.opam
···
10
10
dev-repo: "https://github.com/mirage/ocaml-base64.git"
11
11
depends: [
12
12
"base-bytes"
13
13
-
"ocamlfind" {build}
14
14
-
"ocamlbuild" {build}
15
15
-
"topkg" {build}
13
13
+
"jbuilder" {build}
16
14
"bos" {test}
17
15
"rresult" {test}
18
16
"alcotest" {test}
19
17
]
20
20
-
build: [ "ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" "--tests" "false" ]
18
18
+
build: [
19
19
+
["jbuilder" "subst"] {pinned}
20
20
+
["jbuilder" "build" "-p" name "-j" jobs]
21
21
+
]
21
22
build-test: [
22
22
-
[ "ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" "--tests" "true" ]
23
23
-
[ "ocaml" "pkg/pkg.ml" "test" ]
23
23
+
["jbuilder" "runtest" "-p" name]
24
24
]
-8
pkg/META
···
1
1
-
version = "%%VERSION_NUM%%"
2
2
-
description = "Base64 encoding library"
3
3
-
requires = "bytes"
4
4
-
archive(byte) = "b64.cma"
5
5
-
plugin(byte) = "b64.cma"
6
6
-
archive(native) = "b64.cmxa"
7
7
-
plugin(native) = "b64.cmxs"
8
8
-
exists_if = "b64.cma"
+1
-8
pkg/pkg.ml
···
1
1
-
#!/usr/bin/env ocaml
2
1
#use "topfind"
3
3
-
#require "topkg"
4
4
-
open Topkg
5
5
-
6
6
-
let () =
7
7
-
Pkg.describe "base64" @@ fun c ->
8
8
-
Ok [ Pkg.mllib "src/b64.mllib";
9
9
-
Pkg.test "test/test" ]
2
2
+
#require "topkg-jbuilder.auto"
-4
src/b64.mllib
···
1
1
-
# OASIS_START
2
2
-
# DO NOT EDIT (digest: d5b36098ec1795f41db1bb6de80e04b6)
3
3
-
B64
4
4
-
# OASIS_STOP
+7
src/jbuild
···
1
1
+
(jbuild_version 1)
2
2
+
3
3
+
(library
4
4
+
((name base64)
5
5
+
(wrapped false)
6
6
+
(public_name base64)
7
7
+
(libraries (bytes))))
+10
test/jbuild
···
1
1
+
(jbuild_version 1)
2
2
+
3
3
+
(executable
4
4
+
((name test)
5
5
+
(libraries (base64 rresult alcotest bos))))
6
6
+
7
7
+
(alias
8
8
+
((name runtest)
9
9
+
(deps (test.exe))
10
10
+
(action (run ${<}))))