Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   How does SVN info get placed in source?, posted by Tim Thiel on Wed May 23 05:29:35 2012 
    icon2.gif   Re: How does SVN info get placed in source?, posted by Stefan Ritt on Thu May 31 11:40:15 2012 
Message ID: 67286     Entry time: Thu May 31 11:40:15 2012     In reply to: 67285
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: All  ELOG Version: 2.9.0 
Subject: Re: How does SVN info get placed in source? 

Tim Thiel wrote:

In the elogd.c file nearly at the very top is the following line:

char svn_revision[] = "$Id: elogd.c 2411 2011-04-01 14:39:35Z ritt $";

How does this information get into the source file?  Is it a script used when the svn changes are committed, or perhaps when they are checked out?  Any details or pointers to info on the web would be greatly appreciated.

This gets handled automatically by SVN. All you have to do is to put an "$Id$" in your text somewhere and enable the keyword ID. See for example

http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html

ELOG V3.1.5-3fb85fa6