Commit 27eb8d50 authored by Pietro Abate's avatar Pietro Abate

[r2006-05-10 21:19:45 by afrisch] Empty log message

Original author: afrisch
Date: 2006-05-10 21:19:46+00:00
parent 7ea059c8
......@@ -19,5 +19,5 @@ let split (MPerson -> Man ; FPerson -> Woman)
match argv [] with
| [ f ] ->
(match (load_xml f :? <doc>[ Person* ]) with
| <_>l -> <doc>(map l with x -> split x))
| <_>l -> print_xml (<doc>(map l with x -> split x)))
| _ -> raise "Invalid command line"
......@@ -55,12 +55,17 @@ version 3.08.4, patch level 5</a> (to be used with OCaml 3.08.4)</li>
<li><a
href="http://pauillac.inria.fr/~frisch/ocamlcduce/download/ocamlduce-3.09.1pl1.tar.gz">Compiler,
version 3.09.1</a> (to be used with OCaml 3.09.1)</li>
<li><a
href="http://pauillac.inria.fr/~frisch/ocamlcduce/download/ocamlduce-3.09.2.tar.gz">Compiler,
version 3.09.2</a> (to be used with OCaml 3.09.2)</li>
</ul>
<p>
The following describes the installation procedure for the version
3.09.1. OCamlDuce is installed on top of an existing OCaml
installation (whose version number must match). The build procedure
The following describes the installation procedure for the
3.09.2 release.
OCamlDuce is installed on top of an existing OCaml
installation (whose version number must match) and it requires
a recent version of findlib. The build procedure
is: <tt>make all &amp;&amp; make opt &amp;&amp; make
install</tt>. The configuration is taken from OCaml's
<tt>Makefile.config</tt>.
......@@ -68,20 +73,17 @@ version 3.09.1</a> (to be used with OCaml 3.09.1)</li>
<p>
The tools are named <tt>ocamlduce, ocamlducec, ocamlduceopt,
ocamlducedep</tt> (and their <tt>.opt</tt> variants). In addition, a
library called <tt>ocamlduce.cma/.cmxa</tt> is built. It depends on
the <tt>nums</tt> library.
ocamlducedep, ocamlducemktop, ocamlducemktop, ocamlducefind</tt>.
They are installed in the same directory as the ocaml compiler itself.
</p>
<p>
The <tt>install</tt>
target requires <tt>findlib</tt>. It
registers a package named <tt>ocamlduce</tt>. The tools
go into the same directory as <tt>ocaml</tt>. You can override
this directory: <tt>make install BINDIR=...</tt>.
E.g. the
toplevel can be called by <tt>ocamlduce -I
`ocamlfind query ocamlduce` nums.cma ocamlduce.cma</tt>.
In addition, a library called <tt>ocamlduce.cma/.cmxa</tt> is built.
It depends on the <tt>nums</tt> library. A findlib package named
<tt>ocamlduce</tt> is created by the <tt>make install</tt> target.
Normally, you don't need to care about the package except if you
insist to link your modules with the regular OCaml compilers (not
OCamlDuce), but there is no good reason to do so.
</p>
<p>
......@@ -89,6 +91,21 @@ version 3.09.1</a> (to be used with OCaml 3.09.1)</li>
module: <tt>make htdoc</tt>.
</p>
<section title="Compiling, linking, calling the toplevel">
<p>Starting from OCamlDuce 3.09.2, you don't need to struggle with
extra command-line options. You must simply use the OCamlDuce tools:</p>
<sample>
{{Call the toplevel:}} ocamlduce
{{Compile:}} ocamlducec -c x.ml
{{Link:}} ocamlducec -o x x.cmo
{{Use ocamlfind:}} ocamlducefind ocamlc -o -linkpkg -package pcre x.ml
</sample>
</section>
<section title="Building from the CVS">
<p>
......@@ -112,16 +129,8 @@ The following commands will extract the current development version of
<p>
There is a <tt>godi-ocamlduce</tt> package available in GODI
(sections 3.08 and 3.09). Note that for the section 3.09, you must
install OCaml from CVS (set <tt>OCAML_CVS_CHECKOUT=true</tt> in the
<tt>godi-ocaml-src</tt> package and reinstall <tt>godi-ocaml</tt>).
</p>
<p>
In order to use the new compilers and tools, you can make the
environment variable <tt>OCAMLFIND_CONF</tt> point to the
<tt>$GODI/etc/findlib-ocamlduce.conf</tt> file and then uses
e.g. <tt>ocamlfind ocamlc -package ocamlduce</tt>.
(sections 3.08 and 3.09). Currently, there is no GODI package for
OCamlDuce 3.09.2.
</p>
</section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment