[opam-devel] glob patterns and variables in opam files

Ashish Agarwal agarwal1975 at gmail.com
Mon Jun 8 18:38:58 BST 2015


On Sun, Jun 7, 2015 at 10:33 PM, Louis Gesbert <louis.gesbert at ocamlpro.com>
wrote:

    [ "sh" "-c" "cp _build/* %{foo:lib}%" ]
>

This is good enough for me.


I'm afraid you're stuck with 'foo:name' at the moment, but I agree it's not
> ideal.
>
> Ideas to improve on these welcome!
>

We basically need a "this" variable, which is what %{name}% is. Maybe
interpolating nested variables would work, so we could really do
%{%{name}%:lib}%.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/opam-devel/attachments/20150608/44252edb/attachment.html>


More information about the opam-devel mailing list