On 01/30/2015 04:34 PM, Magnus Bodin wrote:
1. Add a %F flag that gives the whole path /without/ the extension. I
can't count how many times I wanted this flag.
2. ...
3. Some lighter versions of string manipulations. Like converting a
string to upper or lower case. Replace a substring etc.
The two above are possible with LUA parser.
4. A way to specify a specific outputfile in rules where we have
multiple output files. E.g:
This is also possible with LUA parser, because instead of the old syntax
you can write regular functions which take arguments, so in your
function you'd have easy access to both outputs if you pass them as
arguments.
You can look for inspiration here -
https://github.com/DISTORTEC/distortos/blob/master/Tuprules.lua . The
functions actually still use %o and most of them don't have multiple
outputs, but to do what you want just replace uses of "%o" (or any other
flag) with the string variable output (or any variable you actually
need) - from there just extend the functions to use many variables
(coming from function arguments) in any place you want.
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.