Apache OpenOffice (AOO) Bugzilla – Issue 78776
Create function macro / macro expansion to (filename-)normalize a macro
Last modified: 2013-08-07 15:34:52 UTC
See issue 74007 for details. The objective is to create a function macro $(normpath[,var] list) and a macro expansion $(macro_name:n list) that normalizes the elements of list to the shortest representation, see dmake man page BINDING TARGETS. The setting of .WINPATH is used to determine the output format. If var is given in the $(normpath ...) case it is expanded and used as if it were the value of .WINPATH to determine the output format.
Obviously I meant $(macro_name:n) for the macro expansion and that the value of that macro (tokenwise) is normalized.
Created attachment 47055 [details] Patch for dmake
Documentation committed.
@ause: Please verify
Fixed testcases function_macros-8 and macros-7 for non-cygwin OSs.
additional thoughts: i'm wondering if a native windows dmake could able to use d:/tmp translation too. that could e.g. make a combination like MSYS/MSVC possible, for what it is worth...
I like that idea. I haven't checked in a while, but most of the tools that we currently use from cygwin should be available as as native W32 versions. Well, I don't particularly like MSYS, because it needs it's own "cygwin-like" dll, but if we could find a native shell bash, or tcsh (or related, even ksh might work. I guess we don't really use sophisticated shell features.) we could remove the need for cygwin. Or a free 4nt would work ;)
dmake 4.11 is in use now