Skip to content
GitLab
Explore
Sign in
Register
Commits on Source
3
New upstream version 0.9.1
· 55f2ca01
Stephane Glondu
authored
Aug 17, 2019
55f2ca01
New upstream version 1.0.0
· d312a1b6
Stephane Glondu
authored
Aug 17, 2019
d312a1b6
New upstream version 1.0.1
· 8e9a1da7
Stephane Glondu
authored
Aug 17, 2019
8e9a1da7
Show whitespace changes
Inline
Side-by-side
CHANGES.md
View file @
8e9a1da7
v1.0.1 2019-07-19 Zagreb
------------------------
-
Require OCaml 4.03 and handle various stdlib deprecations.
-
Drop
`result`
dependency.
-
Fix an upcoming
`Fmt`
incompability.
-
Addition of
`synopsis`
and
`description`
fields to the
opam file generated for the tarball.
v1.0.0 2018-10-14 Zagreb
------------------------
-
Support (only) for opam-publish v2.0.0. The
`--pkg-opam-dir`
option
of
`topkg opam`
to indicate the old-style opam package directory to
submit is renamed to
`--opam-publish-file`
to indicate the opam file
to submit.
-
Add
`topkg opam publish`
command, alias of
`topkg opam submit`
.
-
Toy github delegate: make curl follow redirects. Before obscure
failures would result when repos got moved around (#120). Thanks
to Richard Mortier for the report.
-
Fix infinite loop in
`Topkg.OS.File.write_subst`
. This could result
in
`topkg distrib`
never finishing (#128). Thanks to Christophe
Troestler for reporting and Jérémie Dimino for the patch.
-
Add
`.ps`
and
`.eps`
files to default watermarking excludes.
Thanks Christophe Troestler for the suggestion (#128).
-
Use
`command -v`
rather than
`type`
to check for tool existence.
Thanks to Hannes Mehnert for the patch.
v0.9.1 2017-10-16 Zagreb
------------------------
-
Make
`topkg build`
return a non-zero exit code when the build
fails. Thanks to Etienne Millon for the patch.
-
Improve
`topkg doc`
for
`jbuilder`
users. Thanks to Thomas
Gazagnaire for the patch.
-
`ocamlbuild`
users: default to parallel builds. This can
be controlled via the
`--jobs`
command line argument. Thanks
to Edwin Török for the patch.
v0.9.0 La Forclaz (VS)
----------------------
...
...
README.md
View file @
8e9a1da7
Topkg — The transitory OCaml software packager
-------------------------------------------------------------------------------
v
0.9.0
v
1.0.1
Topkg is a packager for distributing OCaml software. It provides an
API to describe the files a package installs in a given build
...
...
@@ -27,7 +27,6 @@ Topkg-care is distributed under the ISC license it depends on
[
webbrowser
]:
http://erratique.ch/software/webbrowser
Home page: http://erratique.ch/software/topkg
Contact: Daniel Bünzli
`<daniel.buenzl i@erratique.ch>`
## Installation
...
...
_tags
View file @
8e9a1da7
true : bin_annot, safe_string
, package(bytes result)
true : bin_annot, safe_string
<src> : include
...
...
pkg/META
View file @
8e9a1da7
description = "The transitory OCaml software packager"
version = "
0.9.0
"
requires = "
bytes result
"
version = "
1.0.1
"
requires = ""
archive(byte) = "topkg.cma"
archive(native) = "topkg.cmxa"
plugin(byte) = "topkg.cma"
...
...
@@ -9,7 +9,7 @@ plugin(native) = "topkg.cmxs"
package "care" (
directory = "../topkg-care"
description = "Topkg package care tools"
version = "
0.9.0
"
version = "
1.0.1
"
requires = "topkg opam-format cmdliner bos.setup"
archive(byte) = "topkg_care.cma"
archive(native) = "topkg_care.cmxa"
...
...
pkg/pkg.ml
View file @
8e9a1da7
...
...
@@ -2,8 +2,6 @@
#
use
"topfind"
(* Bootstrap from source, note #mod_use is 4.01 *)
#
require
"bytes"
#
require
"result"
#
directory
"src"
#
mod_use
"topkg_result.ml"
#
mod_use
"topkg_string.ml"
...
...
@@ -12,9 +10,9 @@
#
mod_use
"topkg_cmd.ml"
#
mod_use
"topkg_os.ml"
#
mod_use
"topkg_vcs.ml"
#
mod_use
"topkg_codec.ml"
#
mod_use
"topkg_conf.ml"
#
mod_use
"topkg_fexts.ml"
#
mod_use
"topkg_codec.ml"
#
mod_use
"topkg_opam.ml"
#
mod_use
"topkg_test.ml"
#
mod_use
"topkg_install.ml"
...
...
src-bin/bistro.ml
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
open
Bos_setup
...
...
src-bin/bistro.mli
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
(** The [bistro] command. *)
...
...
src-bin/browse.ml
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
open
Bos_setup
...
...
src-bin/browse.mli
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
(** The [browse] command. *)
...
...
src-bin/build.ml
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
open
Bos_setup
...
...
src-bin/build.mli
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
(** The [build] command. *)
...
...
src-bin/clean.ml
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
open
Bos_setup
...
...
src-bin/clean.mli
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
(** The [clean] command. *)
...
...
src-bin/cli.ml
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
open
Bos_setup
...
...
@@ -122,7 +122,7 @@ let setup style_renderer log_level cwd =
Topkg
.
Log
.
set_level
(
logs_to_topkg_log_level
log_level
);
Logs
.
set_level
log_level
;
Logs
.
set_reporter
(
Logs_fmt
.
reporter
~
app
:
Fmt
.
stdout
()
);
Logs
.
info
(
fun
m
->
m
"topkg v
0.9.0
running"
);
Logs
.
info
(
fun
m
->
m
"topkg v
1.0.1
running"
);
match
cwd
with
|
None
->
`Ok
()
|
Some
dir
->
...
...
src-bin/cli.mli
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
(** {!Cmdliner} and common definitions for commands. *)
...
...
src-bin/distrib.ml
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
open
Bos_setup
...
...
src-bin/distrib.mli
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
(** The [distrib] command. *)
...
...
src-bin/doc.ml
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
open
Bos_setup
...
...
@@ -24,6 +24,9 @@ let copy_assets src_dir dst_dir =
|>
Logs
.
on_error_msg
~
use
:
(
fun
()
->
()
)
|
_
->
()
in
OS
.
Dir
.
exists
src_dir
>>=
function
|
false
->
Ok
()
|
true
->
OS
.
Dir
.
contents
src_dir
>>=
fun
files
->
List
.
iter
(
copy_asset
dst_dir
)
files
;
Ok
()
...
...
@@ -52,8 +55,7 @@ let build_doc pkg pkg_name build_dir dev =
let
out
=
OS
.
Cmd
.
to_stdout
in
let
doc_dir
=
Fpath
.
v
"doc"
in
let
odocl
=
Fpath
.(
doc_dir
/
(
if
dev
then
"dev.odocl"
else
"api.odocl"
))
in
OS
.
File
.
must_exist
odocl
>>=
fun
_
->
Ok
Fpath
.(
set_ext
".docdir"
odocl
/
"index.html"
)
Ok
Fpath
.(
set_ext
".docdir"
odocl
/
"index.html"
)
>>=
fun
target
->
Ok
(
doc_build_args
pkg_name
build_dir
dev
target
)
>>=
fun
args
->
OS
.
Dir
.
current
()
>>=
fun
dir
->
Topkg_care
.
Pkg
.
build
pkg
~
dir
~
args
~
out
...
...
src-bin/doc.mli
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
(** The [doc] command. *)
...
...
src-bin/help.ml
View file @
8e9a1da7
(*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
topkg v
0.9.0
topkg v
1.0.1
---------------------------------------------------------------------------*)
let
topkg_manual
=
"Topkg manual"
let
version
=
"v
0.9.0
"
let
version
=
"v
1.0.1
"
(* Help manuals *)
...
...
@@ -115,7 +115,7 @@ topkg log commit";
opam package description in the build directory with:"
;
`Pre
"topkg opam pkg"
;
`P
"then simply submit it to the opam repository with:"
;
`Pre
"topkg opam
p
ub
lish
"
;
`Pre
"topkg opam
s
ub
mit
"
;
`P
"The latter does nothing more than invoking opam-publish-submit(1) on
the package description generated earlier."
;
`P
"Congratulations. You are done. Ditch your computer."
;
...
...
Prev
1
2
3
4
5
6
Next