Re: RCS version string

From: Bjorn Reese (breese_at_see.signature)
Date: 01/31/04


Date: Sat, 31 Jan 2004 13:40:42 +0100

On Fri, 30 Jan 2004 08:41:01 -0600, Billy Patton wrote:

> What does the VERION string look like inside my c file?

It is not entirely clear to me what you are asking for.

If you have added an RCS/CVS keywords (such as $Id:$ or
$Revision$) to your C sourcecode file, then this keyword
will automatically be modified when you commit your changes.
You can either place the keyword in a comment or in a text:

  /* $Id:$ */
  static const char rcsid[] = "$Id:$";

If you have used the latter, then you can see the keyword
in the executable using the "ident" command.

If you have not added an RCS/CVS keyword to your C source,
then the version will not be stored in your C source, and
you must obtain this from the repository (e.g. cvs status)

-- 
mail1dotstofanetdotdk


Relevant Pages

  • Re: FreeBSD CVS tag
    ... Use the `CVSHeader' keyword instead of `Header'. ... keyword expands to the relative path of the file in the CVS ...
    (freebsd-questions)
  • Re: cvs
    ... When you run ident on many FreeBSD modules ... you see the identifier "FreeBSD" used frequently. ... don't see how cvs is configured to make that happen. ... to tell cvs about the keyword. ...
    (freebsd-questions)
  • cvs
    ... I have been building a cvs structure for a bunch of code and have a couple questions I have not been able to find answers to in the archives/documentation. ... When you run ident on many FreeBSD modules you see the identifier "FreeBSD" used frequently. ... I suspect that somehow I need to tell cvs about the keyword. ... I don't want them to be returned in a normal checkout but would like them to be available somehow. ...
    (freebsd-questions)