Re: How to use Command
Timothee Besset <[email protected]> Thu, 23 Jan 2003 15:39:28 +0100
| Newsgroups | gmane.comp.gnu.cons.general |
|---|---|
| Message-ID | <[email protected]> |
If you don't want to do ugly things, maybe you should avoid perl altogether ;-) I don't see anything wrong with having a small loop scanning a directory for files and filling up the dependency tree. >From the man page: The SourcePath method The SourcePath mathod returns the real source path name of a file, as opposted to the path name within a build directory. It is invoked as follows: $path = SourcePath <buildpath>; I'd assume you can use this to get the real path of the directory containing the source files, and scan it? regards TTimo On Thu, 23 Jan 2003 15:18:16 +0100 "BUFFERNE,VINCENT (HP-France,ex1)" <[email protected]> wrote: > If I do not use the link Command, I still need to specify somewhere my > dependencies for CONS. I do not want to maintain a huge list of file. > And I do not want to use something like: > $cwd = DirPath '.'; > $twd = $cwd.'../../dir1/dir2/" > or ugly things like that... > > Vincent > > -----Original Message----- > From: Dominique Dumont [mailto:[email protected]] > Sent: Thursday, January 23, 2003 2:28 PM > To: Timothee Besset > Cc: BUFFERNE,VINCENT (HP-France,ex1); [email protected] > Subject: Re: How to use Command > > > Timothee Besset <[email protected]> writes: > > > "BUFFERNE,VINCENT (HP-France,ex1)" <[email protected]> wrote: > > > >> The point is that cons work in a build directory where it will copy the > >> necessary files for the build (the necessary dependencies). So in my > case, > >> with no dependencies explicitly listed, I have nothing in this working > >> directory and a simple "ls" will return nothing. > > Why do you use the Link command in this case ? It looks it's more > trouble than it's worth ... > > > -- > [email protected] > > > _______________________________________________ > [email protected] > http://mail.gnu.org/mailman/listinfo/cons-discuss > Cons URL: http://www.dsmit.com/cons/ > _______________________________________________ [email protected] http://mail.gnu.org/mailman/listinfo/cons-discuss Cons URL: http://www.dsmit.com/cons/