From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA06020; Sat, 8 May 2004 12:56:00 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA06862 for ; Sat, 8 May 2004 12:55:58 +0200 (MET DST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i48AttEV018165 for ; Sat, 8 May 2004 12:55:57 +0200 Received: from [192.168.1.200] (ppp116-155.lns1.syd2.internode.on.net [150.101.116.155]) by smtp3.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i48Atkk2037420; Sat, 8 May 2004 20:25:46 +0930 (CST) Subject: Re: [Caml-list] ocamldep From: skaller Reply-To: skaller@users.sourceforge.net To: Nicolas Cannasse Cc: caml-list In-Reply-To: <003401c434db$9bbd8eb0$19b0e152@warp> References: <1083987419.2557.344.camel@pelican.wigram> <003401c434db$9bbd8eb0$19b0e152@warp> Content-Type: text/plain Message-Id: <1084013746.2557.519.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 08 May 2004 20:55:46 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 409CBCBB.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 ocamldep:01 sourceforge:01 2004:99 cannasse:01 ocamldep:01 ocamake:01 mli:01 mli:01 cmx:01 topological:01 dependencies:01 9660:01 glebe:01 cmxa:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, 2004-05-08 at 19:05, Nicolas Cannasse wrote: > > Any chance of a -S option on ocamldep > > which generates a list topologically sorted > > files? > > > > Or a script (ocaml, perl, whatever) that takes > > ocamldep output and does so? > > > > I'm having trouble building a .cmxa library. > > I can't sort ocamldep output in my head.. :) > > OCamake will do it for you ! Please clarify. I need this: make_order dirname >out where 'out' is a plain list of module names A B C D which allows me to compile A.mli B.mli C.mli D.mli A.ml B.ml C.ml D.ml and then put the *.cmx into an *.cmxa in that order. I'm not interested at the moment in using make to actually build anything, I just want an easy way to recompute a topological sort of the module dependencies. -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners