On 01/17/2015 12:19 AM, Ryan Gonzalez wrote:
Hello,

I have a weird situation. I have a dependency tree like this:

a.myr -> a.o a.use
a.use b.myr -> b.o b.use
b.use c.myr -> c.o c.use

I tried this:

: foreach *.myr |> command |> %B.o %B.use

but the order isn't correct. I'm not sure how to approach this. Any ideas?

This cannot be done with the simple command you showed, if the naming shown above is "real", then you'll need to state the rules explicitly for each one of the commands.

Explicit way would be to have it like this:

: a.myr |> command |> %B.o %B.use
: b.myr | a.use |> command |> %B.o %B.use
: c.myr | b.use |> command |> %B.o %B.use

It may possibly be a bit easier with lua parser, as you could (maybe) write some simple parsing to get from the name of .myr to the name of .use that is needed.

Regards,
FCh

--
--
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- You received this message because you are subscribed to the Google Groups "tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to