forked from dbuenzli/cmdliner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
52 lines (34 loc) · 1.38 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
-------------------------------------------------------------------------------
%%MODNAME%% - %%SYNOPSIS%%
Release %%VERSION%%
-------------------------------------------------------------------------------
%%DESCRIPTION%%
Home page: %%HOMEPAGE%%
Contact: %%MAINTAINER%%
Installation
------------
To install %%MODNAME%% you need at least :
OCaml %%OCAMLVERSION%% %%PPDEPS%%
If you have `findlib`, it can be installed by typing :
ocaml setup.ml -configure
ocaml setup.ml -build
ocaml setup.ml -install
If you don't, `%%NAME%%.mli` and `%%NAME%%.ml` contain everything, the
code, the documentation and the license. Install the dependencies and
use the sources the way you want. For example if you use `ocamlbuild`
you can issue the following commands from the root directory of your
project :
ln -s /path/to/%%NAME%%-%%VERSION%%/src %%NAME%%
echo "<%%NAME%%> : include" >> _tags
Documentation
-------------
The documentation and API reference is automatically generated by
`ocamldoc` from `%%NAME%%.mli`. For you convenience you can find a
generated version in the `doc` directory of the distribution.
Sample programs
---------------
Sample programs are located in the `test` directory of the
distribution. They define the command line of some classic
programs and can be built with:
ocamlbuild test/tests.otarget
The resulting binaries are in `_build/test`.