English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
ocamlbuild missing links: using a bash script
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-11-21 (10:52)
From: Hugo Ferreira <hmf@i...>
Subject: ocamlbuild missing links: using a bash script
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.