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=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 25D52BC6B for ; Tue, 12 Feb 2008 10:56:07 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAAb8sEfAXQInh2dsb2JhbACKGYYiAQEBCAopmnk X-IronPort-AV: E=Sophos;i="4.25,339,1199660400"; d="asc'?scan'208";a="9088144" Received: from concorde.inria.fr ([192.93.2.39]) by mail3-smtp-sop.national.inria.fr with ESMTP; 12 Feb 2008 10:56:06 +0100 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m1C9u67G013093 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Tue, 12 Feb 2008 10:56:06 +0100 X-IronPort-AV: E=Sophos;i="4.25,339,1199660400"; d="asc'?scan'208";a="7216390" Received: from peray.inria.fr (HELO ausone.inria.fr) ([128.93.8.98]) by mail2-relais-roc.national.inria.fr with SMTP; 12 Feb 2008 10:56:06 +0100 Received: by ausone.inria.fr (sSMTP sendmail emulation); Tue, _d Feb 2008 10:54:59 +0100 From: "Nicolas Pouillard" Cc: caml-list Subject: Re: [Caml-list] Ocamlbuild: the "rule" API function and tags To: Romain Bardou References: <47B16B45.8010007@lri.fr> In-Reply-To: <47B16B45.8010007@lri.fr> Date: Tue, 12 Feb 2008 10:54:59 +0100 Message-Id: <1202809819-sup-897@port-ext6.ensta.fr> User-Agent: Sup/git Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1202810099-974937-48553-6297-3-="; micalg="pgp-sha1" MIME-Version: 1.0 X-Miltered: at concorde with ID 47B16D36.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 deprecated:01 caml-list:01 argument:02 argument:02 restrict:02 restrict:02 api:02 api:02 seems:03 aka:04 perhaps:05 triggered:05 tue:06 function:08 X-Attachments: cset="UTF-8" type="application/pgp-signature" name="signature.asc" name="signature.asc" --=-1202810099-974937-48553-6297-3-= Content-Type: text/plain; charset=UTF-8 Excerpts from Romain Bardou's message of Tue Feb 12 10:47:49 +0100 2008: > Hello, Hello, > The API function "rule" for Ocamlbuild has an argument "~tags" which > seems to be used, in the file "ocaml_specific.ml" of the Ocamlbuild > source, to restrict the rule to targets using specific tags. Forget about the ~tags argument of the "rule" function, it's a deprecated feature (as the last documentation of the function say it). > However, when I tried to add a rule in my plugin, the rule is called > whatever the tags of the file may be. Yes the argument is ignored. > How can I control when a rule will be triggered using tags? I need to > restrict my rule to files that use tag "test", for instance. You can't, but perhaps is there another way to obtain the same final result. -- Nicolas Pouillard aka Ertai --=-1202810099-974937-48553-6297-3-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) iD8DBQFHsWzzj+FCNw9dwLkRAjT8AJ96Om0erYfUL4MBRK9aMucc3kcdFQCgkns9 SFTugXexVQ3Y1xjIUf+I0gI= =HteR -----END PGP SIGNATURE----- --=-1202810099-974937-48553-6297-3-=--