Re: Adding a bdir() function
Bram Moolenaar <[email protected]>
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Adriaan de Groot wrote: > > - What if the current value of $BDIR is different from the build > > directory in the file name? An alternative would be to always remove > > the build dir from the file name and then prepend $BDIR. > > What if it is? It's just a python function, not something that needs to be > forced upon the user. In particular, it's useful in modules. If you apply it > just to target names, say, then when there's already a build dir in there, > it's left alone. What's wrong with that? It's not a matter of right or wrong. Just wondering what most people would expect to happen. Mostly the items would not have a build directory or a build directory equal to $BDIR. Thus it's just for rare cases, but I tend to try to make things perfect... > > - Instead of checking for "build-" the locate_bdir() function can be > > used. This also takes care of ignoring case on MS-Windows. > > Indeed. The locate_bdir() function seems to suffer from the same > problems you mention wrt. "build-me" - special directory names can > break it. Yep. Nobody complained so far... -- Q: Is selling software the same as selling hardware? A: No, good hardware is sold new, good software has already been used by many. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/