[jamming] Problems with listing files in directories

Klaus Meier winstonkl at hotmail.com
Wed May 24 00:18:59 PDT 2006


>
> > Sorry, but your version ended in a loop. RGLOB will be called again
> > and agein recursively.
>
>Is that the original version I sent or did you make some modifications
>to it first? I've been using that version for years without a single
>problem.
>

So how do you call your function when you want to list a files in the 
directory where your Jamfile is??
I did it with:
c_files = [ RGLOB . : [a-z]*[.][c] ] ;

And i've got another problem.
Additionally i've a directgory with Header-Files in a separate directory 
called \include.
I need them for building the libraries.
How can I tell Jam to look in this directory for the Header-Files.
With the INCLUDE = ..\\include Statement it didn't worked.


Best regards,


Winston


> >>Also note that [ GLOB $(1) : * ] has a quirk that if $(1) is a file,
> >>it will return that file.
>
>Actually, looks like I mixed it up a bit here. It doesn't do that. It 
>returns empty list when you GLOB on a file, and so...
>
> > How can I test it agains inclusion?
>
>... you can use if ! [ GLOB $(f) : * ] to test whether f is a file. This 
>way you won't try to recurse into files.
>

_________________________________________________________________
Die neue MSN Suche Toolbar mit Windows-Desktopsuche. Suchen Sie gleichzeitig 
im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu! http://desktop.msn.de/ 
Jetzt gratis downloaden!


More information about the jamming mailing list