tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: make: modifier to run realpath() on variable?
In article <20100414210350.61FE71C7053%bad.crufty.net@localhost>,
Simon J. Gerraty <sjg%crufty.net@localhost> wrote:
>The next version of bmake will have a dependency on realpath()
>so I'd like to be able to replace things like:
>
>${.PARSEDIR:C,.*,cd & \&\& 'pwd',:sh}
>
>which is expensive if you have to do it 200k times
>with:
>
>${.PASEDIR:tA}
>
>to convert .PARSEDIR to an absolute path.
>(if realpath fails, the value is not touched).
>
>'A' (or 'a') for 'A'bsolute - but 'r' (or 'R') for 'realpath' might
>work too.
>
>The patch is trivial - apart from picking a name.
>
A is better for me. I guess did not mean to steal the R from .PARSEDIR.
christos
Home |
Main Index |
Thread Index |
Old Index