[jamming] Path Bug
Alen Ladavac
alenl-ml at croteam.com
Sun Jul 30 23:53:42 PDT 2006
While on this topic, and while majam is on the rise... :)
... I've had our version of jam "re-adjusted" so that, internally, it
only uses forward slashes (Unix-style). So, in jamfiles, you'd only
use "/" and jam would remap to "\" when accessing disk (we are only
considering NT and Unix platforms here, but it could use ":" or
whatever if that's needed). Additionally, when invoking build actions,
I've added :\ modifier to remap slashes as wanted. (But, you'd be
surprised at how many Windows command-line tools just accept "/"-paths
without a problem!)
It's been a sheer pleasure working multi-platform since then. :) Would
it perhaps be useful to have something like this in majam as well?
Alen
> Sorry, I am mistaken. I was meaning to press discard rather than the send button, doh.
> Craig.
> On 7/31/06, Craig Allsop < cjamallsop at gmail.com> wrote:
>
> I reported this issue a long time ago and don't understand why it wasn't integrated into jam.
> filent.c:
> old:
> sprintf( filespec, "%s/*", dir );
> new:
> sprintf( filespec, "%s%c*", dir, PATH_DELIM );
> The original code here uses forward slashes in the NT file scanner.
> During a HdrScan rule, found headers have the wrong path character.
>
>
--
Alen
More information about the jamming
mailing list