caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: Gabriel Scherer <gabriel.scherer@gmail.com>
Cc: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlfind path to META file ?
Date: Thu, 12 Nov 2015 10:39:15 +0000	[thread overview]
Message-ID: <7B4D36ABD3EA4437828810749824D6B1@erratique.ch> (raw)
In-Reply-To: <CAPFanBE-qB41hwnHDsO2U-SCQpeKRjxvxXzz0GHzRW28gAs6Kg@mail.gmail.com>

Le jeudi, 12 novembre 2015 à 10:27, Gabriel Scherer a écrit :
> `ocamlfind install` requires that either the META file is installed in
> the package directory (so your command will work), or the -metadir
> option is passed and the META file is installed in some META-only
> directory that is global to the ocamlfind configuration. You can query
> this directory with $(ocamlfind printconf metadir) (which returns an
> empty line if no such directory is used).
>  
> This means that the following logic should always find your package file:
> - if $(ocamlfind printconf metadir) is not empty, look at
> $(ocamlfind printconf metadir)/META.$PKG
> - otherwise look at
> $(ocamlfind query $PKG)/META

Thanks. Though it would be nice to have a query flag that implements the logic, rather than each of us reimplementing it.  

Best,  

Daniel



      reply	other threads:[~2015-11-12 10:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-12 10:20 Daniel Bünzli
2015-11-12 10:27 ` Gabriel Scherer
2015-11-12 10:39   ` Daniel Bünzli [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=7B4D36ABD3EA4437828810749824D6B1@erratique.ch \
    --to=daniel.buenzli@erratique.ch \
    --cc=caml-list@inria.fr \
    --cc=gabriel.scherer@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;
as well as URLs for NNTP newsgroup(s).