A note from Sid about a very nice CVS feature!

===================

On a less related note -- some time back I'd come across the "keyword
substitution" feature of CVS. I'd seen it used in QueryData and never
really bothered to figure out how it worked.

Well... it appears to be quite useful... If there exist strings like
$Date$, $Author$, $Id$ (and some others) in a file that you are planning
to commit to CVS, CVS replaces these strings with values during commit.
Also, at every cvs update of the file it updates the values. So $Date$
will be replaced by $Date: 2004/10/23 07:03:16$, $Author$ by
$Author: sidz1979$ and so on. More information at
  http://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_12.html

Now, we usually have a "Last Updated" string in most of our source code
and README files. And we manually update this string whenever we make a
change to a file. The "keyword substitution" can be used to automate
this process.

I went ahead and put a "keyword" in all the source files for Similarity
so whenever anyone commits a change to cvs it will reflected in the
"Last updated" string automatically. As you will notice, in source code
this string must occur inside a comment so as not to interfere with the
code itself.

===================


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/x3XolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nlpatumd/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to