From: Richard Jones <rich@annexia.org>
Cc: caml-list <caml-list@inria.fr>
Subject: [Caml-list] ocamldsort and directories
Date: Thu, 21 Oct 2004 12:12:38 +0100 [thread overview]
Message-ID: <20041021111238.GA3479@annexia.org> (raw)
In-Reply-To: <Pine.LNX.4.43.0410191510020.16188-100000@pc8-119.lri.fr>
[-- Attachment #1: Type: text/plain, Size: 1400 bytes --]
On Tue, Oct 19, 2004 at 03:16:33PM +0200, Julien Signoles wrote:
>
> > What I'd love is an enhanced ocamldep that in addition to the
> > dependencies prints also a topologically sorted list of files, like
> > this:
>
> I think Ara's ocamldsort (mixed with ocamldep) is your friend. I quote the
> beginning of the README file:
>
> "The ocamldsort command scans a set of Objective Caml source files (.ml
> and .mli files), sorts them according to their dependencies and prints the
> sorted files in order to link their corresponding .cmo and .cmi files."
>
> http://www.eleves.ens.fr/home/ara/ocaml.html
I tried out ocamldsort, and it seems to work well, *except* that
there seems to be a strange bug involving directories:
~/d/merjis/tools/wiki/scripts/lib$ ocamldsort -byte *.ml *.mli
cocanwiki_date.cmo cocanwiki_emailnotify.cmo cocanwiki_files.cmo [...]
~/d/merjis/tools/wiki/scripts/lib$ cd ..
~/d/merjis/tools/wiki/scripts$ ocamldsort -I lib -byte lib/*.ml lib/*.mli
lib/cocanwiki.cmo lib/cocanwiki_date.cmo lib/cocanwiki_diff.cmo [...]
The second ordering is completely wrong. (In fact, I think the second
ordering is just alphabetic ordering).
Rich.
--
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
http://www.YouUnlimited.co.uk/ - management courses
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-10-21 11:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-19 12:49 [Caml-list] make Radu Grigore
2004-10-19 13:02 ` Nicolas Cannasse
2004-10-20 0:28 ` skaller
2004-10-19 13:16 ` Julien Signoles
2004-10-19 13:35 ` Radu Grigore
2004-10-19 19:12 ` noweb/nuweb (was: Re: [Caml-list] make) David MENTRE
2004-10-20 5:08 ` Radu Grigore
2004-10-21 11:12 ` Richard Jones [this message]
2004-10-22 18:04 ` [Caml-list] ocamldsort and directories Dimitri Ara
2004-10-19 14:48 ` [Caml-list] make Eric C. Cooper
2004-10-19 23:23 ` skaller
2004-10-21 2:41 ` Aleksey Nogin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041021111238.GA3479@annexia.org \
--to=rich@annexia.org \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox