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.2 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 99AD6BC69 for ; Wed, 21 Nov 2007 11:52:41 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAJ+cQ0fAI/YJ/2dsb2JhbAA X-IronPort-AV: E=Sophos;i="4.21,446,1188770400"; d="scan'208";a="4739083" Received: from bart.inescn.pt ([192.35.246.9]) by mail1-smtp-roc.national.inria.fr with ESMTP; 21 Nov 2007 11:52:41 +0100 Received: from localhost (bart.inescn.pt [127.0.0.1]) by bart.inescn.pt (8.13.8/8.13.8/1) with ESMTP id lALAqeCu005916 for ; Wed, 21 Nov 2007 10:52:40 GMT X-Virus-Scanned: amavisd-new at inescporto.pt Received: from bart.inescn.pt ([127.0.0.1]) by localhost (bart.inescn.pt [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HYT7YZVSHBll for ; Wed, 21 Nov 2007 10:52:30 +0000 (WET) Received: from [194.117.30.94] (morfina.inescn.pt [194.117.30.94]) by bart.inescn.pt (8.13.8/8.13.8/38) with ESMTP id lALAqQJP005907 for ; Wed, 21 Nov 2007 10:52:26 GMT Message-ID: <47440DEA.9060104@inescporto.pt> Date: Wed, 21 Nov 2007 10:52:26 +0000 From: Hugo Ferreira User-Agent: Thunderbird 2.0.0.9 (X11/20071119) MIME-Version: 1.0 To: Caml Mailing List Subject: ocamlbuild missing links: using a bash script Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; compilation:01 byte:01 byte:01 unix:01 symbolic:01 bin:01 behaviour:01 modules:02 modules:02 exit:04 compiled:04 compiled:04 correctly:04 fails:05 fails:05 Hello, I have a very simple bash script that I use to build my project using ocamlbuild. The idea is to build modules successively and execute tests until compilation fails, a test fails or all modules are correctly compiled. It goes something like this: ................................................. #!/bin/bash # Exit on error set -e ocamlbuild src/comb/tests_comb.d.byte -- ocamlbuild -lib unix src/uf/bench.d.byte -- ................................................. I have noticed however that the build (if successful) only retains the last symbolic link to the compiled artefacts. My questions are: 1. Is the above behaviour intended? 2. If so how can I keep all resulting links TIA, Hugo F.