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=2.0 required=5.0 tests=AWL,DNS_FROM_RFC_POST, 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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 02C4CBBAF for ; Wed, 3 Dec 2008 00:53:08 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.33,704,1220220000"; d="scan'208";a="32102987" Received: from concorde.inria.fr ([192.93.2.39]) by mail4-smtp-sop.national.inria.fr with ESMTP; 03 Dec 2008 00:53:08 +0100 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id mB2Nr8mY006788 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 3 Dec 2008 00:53:08 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As4AADFZNUlIDtyYkGdsb2JhbACTED4BAQEBCQkMBxEDsi2MOAEDAQOCfIIb X-IronPort-AV: E=Sophos;i="4.33,704,1220220000"; d="scan'208";a="32102986" Received: from fg-out-1718.google.com ([72.14.220.152]) by mail4-smtp-sop.national.inria.fr with ESMTP; 03 Dec 2008 00:53:07 +0100 Received: by fg-out-1718.google.com with SMTP id e21so2262462fga.25 for ; Tue, 02 Dec 2008 15:53:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer:sender; bh=TjVAjBRMe6xZ1TE4EnWsYJeW3+i632X5EH4kYmXnqbU=; b=Wbs2DdIVnjC6fCuHtRze6uyZQuTRmV6/xjMI/PZs31+4/s0MwP732P1dUMbef7B5pk rrxyCCOu/akiPRuurQ6TW1aLaIzmugPb4UyV9/CA3gpBdnWDhcwtOtRMfRkRyI1jDRH+ vkc025muG3CHevL5CfFsuJ0VJb0HBiGIZArDc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer:sender; b=xqJZKRWW7gNaGk+vn+O2b+XZhBb+d6IASEKluZm82Qw8NoWgfX6pnKZA8hwENeu80x ORRCefSVQjzJbYpESpI3RMrtIrnXKwtQLwB2DrOXln2fJNeippLPsMOocAS+ihJuN3Ar 56IbdnR8mGonPVKK5c1QffPDVV29qcThMdV+U= Received: by 10.86.50.6 with SMTP id x6mr971214fgx.71.1228261987562; Tue, 02 Dec 2008 15:53:07 -0800 (PST) Received: from ?192.168.1.34? (167-114.1-85.cust.bluewin.ch [85.1.114.167]) by mx.google.com with ESMTPS id 12sm4701192fgg.53.2008.12.02.15.53.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Dec 2008 15:53:07 -0800 (PST) Message-Id: <0A47DC4F-D540-44C1-A81C-135F860832D1@erratique.ch> From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= To: OCaml List In-Reply-To: <49351B89.3080208@doomeer.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: [Caml-list] ocamlbuild rule with recursive action Date: Wed, 3 Dec 2008 00:51:57 +0100 References: <34C5E0E0-6C71-40C2-8AC6-46B619710F32@erratique.ch> <49351B89.3080208@doomeer.com> X-Mailer: Apple Mail (2.929.2) Sender: =?UTF-8?B?RGFuaWVsIELDvG56bGk=?= X-Miltered: at concorde with ID 4935CA64.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bunzli:01 buenzli:01 recursive:01 bool:01 rec:01 caml-list:01 define:02 daniel:04 daniel:04 ugly:04 dec:05 ecrit:06 rule:10 rule:10 maybe:10 Le 2 d=E9c. 08 =E0 12:27, DooMeeR a =E9crit : > Well, you can define a rule like this : Thanks. I'll try something along these lines. But that's kind of ugly. In the future could maybe ocamlbuild add =20 another case in the command type, something like Rec of action -> (command * bool) Or maybe there is another way ? Daniel