Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* ocamlbuild adding directories arguments to a tool with tags
@ 2010-07-09 23:47 Daniel Bünzli
  2010-07-14 15:37 ` Daniel Bünzli
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Bünzli @ 2010-07-09 23:47 UTC (permalink / raw)
  To: caml-list

Hello,

I would like to be able to specify

<d> : mytool:include

So that when mytool is invoked it is invoked for example with

mytool -dir d

is there any easy way to achieve that with a plugin ?

Best,

Daniel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ocamlbuild adding directories arguments to a tool with tags
  2010-07-09 23:47 ocamlbuild adding directories arguments to a tool with tags Daniel Bünzli
@ 2010-07-14 15:37 ` Daniel Bünzli
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Bünzli @ 2010-07-14 15:37 UTC (permalink / raw)
  To: caml-list

> I would like to be able to specify
>
> <d> : mytool:include
>
> So that when mytool is invoked it is invoked for example with
>
> mytool -dir d


An alternate way of doing that is to tag the .ext files the tools act
upon with :

<**/.*ext> : dir(d)

And have the following pflag rule :

pflag ["mytool"] "dir" (fun d -> S [ A "-dir"; P d])

Of course the rules that invoke mytool should add the tag "mytool" to
the command tags.

Best,

Daniel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-14 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-09 23:47 ocamlbuild adding directories arguments to a tool with tags Daniel Bünzli
2010-07-14 15:37 ` Daniel Bünzli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox