[Asterisk-Dev] Re: Makefile changes in CVS HEAD
tony at softins.clara.co.uk
Mon Jun 6 08:09:12 MST 2005
In article <20050606145203.GG16036 at virtual.bogons.net>,
Simon Lockhart <simon at slimey.org> wrote:
> On Mon Jun 06, 2005 at 02:20:23PM +0000, Tony Mountifield wrote:
> > My suggestion would be for every .c file to contain the following:
> > static const char cvsid = "$Id$";
> > which would then get filled in by CVS when checking out.
> But how do you include it as part of bug reporting?
> "show modules" could include that version string, but what about modules that
> contain multiple .c files?
> Request a "strings" of the asterisk binary / module binary ?
Did you look at "man ident"?
The $Id$ string gets expanded to include the filename, CVS version,
date and time. Having it in a static char array makes the binary contain
the string. The "ident" command is like "strings", but searches only
for RCS/CVS keyword strings.
So for example, if you want to know what version of channel.c is in
the asterisk you are reporting a problem about:
# ident asterisk | fgrep channel.c
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-dev