[Cook] Enumerating leaf directories

Reuben Thomas rrt at sc3d.org
Tue Mar 6 08:30:43 EST 2007


On Sat, 3 Mar 2007, Pendergraft, Jerry wrote:

> Possibly - but always a good idea to *not* have file names with spaces ;^)

Remember, I'm writing an application, not a cookfile for a project of mine. 
I don't want to limit users.

> right - collect lines will do one per line. Within cook all are NUL 
> terminated, not the same as NL terminated.

So I can't collect NUL-terminated strings but I can store them?!

> surely subversion, and any other sane system provides a way to list the 
> files it controls?

Coming from a make/autotools background, where you tend to list your sources 
rather than collect them, I had never used this command, but subversion and 
cvs certainly both do have such a command.

> Not sure I follow here - don't understand how an empty directory serves as 
> a source? Don't you define what you build? That is by mapping source files 
> to build product files?

The list of leaf directories defines what is built.

I think now I'm just missing the standard way to specify the directory for 
an out-of-tree build (I asked about this on 2nd March, but didn't get a 
reply). Is there a standard way to do this in cook?

-- 
http://rrt.sc3d.org/ | Brevity is the soul



More information about the Cook-users mailing list