On 10/28/07, Stéphane Magnenat <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm looking at diverse SConstruct towards the goal of building the deb. > Yet > there is undocumented code whose reason of existance is not obvious for > me: > - in main SConstruct, why does PackTar have case for files beginning with > "/", > this does not happen in glob2?
This is for directories->files, like, src/File.cpp, it has to consider the directory portion separately. - why is "dist" and "install" targets considered together? I imagine that it > is to iterate on files only once but that reduce readability, specially > because there is a test in PackTar to exclude the non "dist" case. > That seems odd. That was likely accidental, or without thinking. - path seems to be concatenated by hand, shouldn't we use os.path.join() ? > That works just the same. - top level script is named SConstruct, while branch ones are call > SConscript, > is it a normal convention? > Yes this is normal convention. They are distinguished because SConscript can not be called alone, it is just a delegate file. It would be very good if people who wrote glob2 scons scripts could answer > those questions/cleanup/document a bit the scripts. > > I plan to write the debian target using a PackDeb function, which puts the > files in deb/..., then creates the control file and call dpkg-deb,, in the > idea of what is explained here: > http://www.qandr.org/quentin/writings/debscons.html > > Thanks, have a nice daiy, > > Steph > > -- > http://stephane.magnenat.net > -- Extra cheese comes at a cost. Bradley Arsenault.
_______________________________________________ glob2-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/glob2-devel
