From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 06F58BBAF for ; Wed, 14 Jul 2010 17:37:51 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjwCAD52PUzRVdY2mGdsb2JhbACDHpAIjD0IFQEBAQEBCAkMBxEiry+CSoVPiQEBAQMFgSSDCXIEiFCHRQ X-IronPort-AV: E=Sophos;i="4.55,202,1278280800"; d="scan'208";a="66451101" Received: from mail-bw0-f54.google.com ([209.85.214.54]) by mail4-smtp-sop.national.inria.fr with ESMTP; 14 Jul 2010 17:37:50 +0200 Received: by bwz12 with SMTP id 12so31643bwz.27 for ; Wed, 14 Jul 2010 08:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=Q7fI5VevWkq0nFnjo4VvJXtMKYkE8z8+xrCzonywn7c=; b=B7/aNTtJJS17HcDlKPL8Y4WiD5efKXGMTmNhnNG4sewmpQ3uFZaauZDi8qMOklBHOj jgE742IqWLd0CPPfAyuBlzDOsNApa4+m8vHaIKKL/1+HdofRSgUSd1Idi2UrQI7zv7JS jzlvvfg7dLROf5aUR/u7Rhq2e0C3+lIfjl9Mw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=PpOsp7D4BykaVXCUXUDfLX5Deharw+3uxdjadCemRIqN+Bf1i5fypv8xXXFX2AYI/0 mcZVkIGJME7tO0KzdPSLz5/LrW93t0afLHAM2IjouqDNOahYZPwqIpSH7ofPlC+PDGz+ R3avKrpsJVMLesDMZP/zqig4SrwBVCEROi33M= MIME-Version: 1.0 Received: by 10.204.118.3 with SMTP id t3mr13567827bkq.163.1279121870117; Wed, 14 Jul 2010 08:37:50 -0700 (PDT) Sender: daniel.c.buenzli@gmail.com Received: by 10.204.78.134 with HTTP; Wed, 14 Jul 2010 08:37:49 -0700 (PDT) In-Reply-To: References: Date: Wed, 14 Jul 2010 17:37:49 +0200 X-Google-Sender-Auth: 77QplRE1MWd9WJQjRkXgKQ3dAHg Message-ID: Subject: Re: ocamlbuild adding directories arguments to a tool with tags From: =?UTF-8?Q?Daniel_B=C3=BCnzli?= To: caml-list@inria.fr Content-Type: text/plain; charset=UTF-8 X-Spam: no; 0.00; buenzli:01 invoke:01 daniel:04 daniel:04 specify:06 arguments:07 fun:08 example:10 rule:10 rules:11 tag:13 tag:13 should:13 tools:13 invoked:14 > I would like to be able to specify > > : mytool:include > > So that when mytool is invoked it is invoked for example with > > mytool -dir d An alternate way of doing that is to tag the .ext files the tools act upon with : <**/.*ext> : dir(d) And have the following pflag rule : pflag ["mytool"] "dir" (fun d -> S [ A "-dir"; P d]) Of course the rules that invoke mytool should add the tag "mytool" to the command tags. Best, Daniel