From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: *** X-Spam-Status: No, score=3.1 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,DNS_FROM_SECURITYSAGE, RCVD_IN_NJABL_PROXY autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id C1824BBAF for ; Tue, 4 Nov 2008 21:49:09 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiQBAEdEEEnOvjGukWdsb2JhbACUFwEBAQEJCwoHEQOqWIxQBQIBg1A X-IronPort-AV: E=Sophos;i="4.33,545,1220220000"; d="scan'208";a="16860881" Received: from web54604.mail.re2.yahoo.com ([206.190.49.174]) by mail2-smtp-roc.national.inria.fr with SMTP; 04 Nov 2008 21:49:09 +0100 Received: (qmail 38516 invoked by uid 60001); 4 Nov 2008 20:49:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=lF/ANc46n4LmKgExAQWyRQ/VMGokr7FbH6526Vb3Ir7BTRVCC2BKUICVDypJ+cLh4PrF5VQ7JFIG86102C8CwyN4K0778M/ox/339UeB02mit97ujLnsbq7BAc5VjG2PQycQc7I+AGXgNbVVHcVZQMZEDpJg43ZdHsTupvUmbJU=; X-YMail-OSG: jc.Vb5YVM1lpAuGwcjDYy9I2yGaLyBLBX082lpBEYJKuadokX.q34nX9RHwiDPRsVIdDxs6hdtHTdCwkkCJmeuq_Z16N1Rxz7DgbUenmKIvUhZEesQulTmMUg3ZgXJ48Qf7e0pnUKikPDz3vMt4bMXX2b5b3Zs0zkF5KBMOdUuEQI5nXac5A5hiyiROK Received: from [213.205.70.215] by web54604.mail.re2.yahoo.com via HTTP; Tue, 04 Nov 2008 12:49:08 PST X-Mailer: YahooMailWebService/0.7.247.3 Date: Tue, 4 Nov 2008 12:49:08 -0800 (PST) From: Dario Teixeira Subject: Re: [Caml-list] Ocamlbuild + Ocamldoc troubles To: DooMeeR Cc: caml-list@yquem.inria.fr In-Reply-To: <4910AE01.3090504@doomeer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <391288.35718.qm@web54604.mail.re2.yahoo.com> X-Spam: no; 0.00; ocamldoc:01 ocamldoc:01 compilation:01 parsetree:01 typedtree:01 ocamlfind:01 odoc:01 -package:01 -package:01 pcre:01 impl:01 parsetree:01 typedtree:01 exited:01 cheers:01 Hi, > So, ocamldoc doesn't find "intro.txt". This is because this > file is not copied into the _build directory by ocamlbuild. > You need to explain to ocamlbuild, in your plugin, that your > target (lambdoc.docdir/index.html) depends on "intro.txt", > otherwise ocamlbuild won't copy the file. Even if you copy > the file yourself into the _build directory, ocamlbuild > might delete it. > > If I remember correctly there is a function of the plugin > API, called "dep" if I'm not mistaken, which does exactly > this. Thanks for the reply. Ideally one should be able to specify that info in the _tags file and/or with other special files. And I reckon that Ocamlbuild probably already supports that. By the way, I have managed to get Ocamlbuild to invoke Ocamldoc for the source code files only (no intro or tutorials) by creating a lambdoc.odocl file whose contents are the same as lambdoc.mlpack's. However, the compilation fails with a mysterious "analyse_module: parsetree and typedtree don't match" error: + ocamlfind ocamldoc -dump lambdoc/document_ast.odoc -package extlib -packa= ge ocsigen.xhtml -package pcre -package sexplib -package threads -package u= nix -package xml-light -I lambdoc -I lambdoc/readers -I lambdoc/writers -I = lambdoc/readers/lambtex_reader_impl lambdoc/document_ast.ml analyse_module: parsetree and typedtree don't match. 1 error(s) encountered Command exited with code 1. Any ideas? Cheers, Dario =0A=0A=0A