From: Berke Durak <berke.durak@exalead.com>
To: Nicolas Pouillard <nicolas.pouillard@gmail.com>
Cc: Ashish Agarwal <agarwal1975@gmail.com>, caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlbuild's symlink behavior
Date: Tue, 04 Mar 2008 10:36:42 +0100 [thread overview]
Message-ID: <47CD182A.50803@exalead.com> (raw)
In-Reply-To: <1204621199-sup-9348@ausone.inria.fr>
Nicolas Pouillard a écrit :
> Excerpts from Ashish Agarwal's message of Tue Mar 04 02:26:33 +0100 2008:
>> It is probably better to refer to the executables under _build in external
>> scripts.
>>
>> On Mon, Mar 3, 2008 at 1:04 PM, Eric Cooper <ecc@cmu.edu> wrote:
>>> Ocamlbuild seems to create a symbolic link into the _build directory
>>> when you build a single target. But it removes that symlink if you
>>> build a different target, and it doesn't produce any symlinks if you
>>> build a *.otarget.
>>>
>>> Is there any rationale for this? It makes it difficult to use the
>>> resulting symlinks in any kind of build script.
>
> That's right, symlinks was more to explain the user where things are.
I have an idea. Remove symlinks pointing to the _build directory *only*
if the basename of the symlink is the same as the basename of the target.
Hence, if I have toto.native in project/_build and toto.native in project
pointing to project/_build/toto.native, it would get deleted when ocamlbuild
is invoked without toto.native as a target.
However I can create a link project/toto.opt that links to project/_build/toto.native
and it wouldn't get deleted by myocamlbuild.
This would also be a way to respond to people who find the ".native" extension
too long - tell them that they would be better of creating their own symlinks anyway.
--
Berke DURAK
prev parent reply other threads:[~2008-03-04 9:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-03 18:04 Eric Cooper
2008-03-04 1:26 ` [Caml-list] " Ashish Agarwal
2008-03-04 9:00 ` Nicolas Pouillard
2008-03-04 9:36 ` Berke Durak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47CD182A.50803@exalead.com \
--to=berke.durak@exalead.com \
--cc=agarwal1975@gmail.com \
--cc=caml-list@inria.fr \
--cc=nicolas.pouillard@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox