|Subject:||Re: Including file version during checkout|
|Date:||Thu, 26 Sep 2002 13:08:26 -0700|
|User-agent:||Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826|
Frederic Brehm wrote:
I don't remember many unhappy comments about $Rev$ or its cousins $Id$ and $Name$. There are many reasons to avoid $Log$, though.
Ever archive a Perl script that used variables with the (not exactly unusual) variable names $Rev, $Name, or $Log? I'd like to see the whole auto-substitution thing thrown out, myself.
For the OP, I would recommend writing a script which runs `cvs log` on each file in the build, strips out the desired information, and formats it appropriately (e.g. a C source file which defines a structure of file information and the single instance of that structure). This avoids having auto-expand keywords in a source file.
Oh, and if you write a Perl script, don't store the filename in variable $Name, or every file will have the same name as the script!
|[Prev in Thread]||Current Thread||[Next in Thread]|