[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: script to put svn revision number in c source file

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2004-03-29 17:11:46 CEST

Jan Evert van Grootheest <j.grootheest@euronext.nl> writes:

> Sean,
>
> try the revision keyword.
> In C/C++:
> static char rev[] = "$Revision$";
> printf( "Revision of this file is %s.\n", rev );

Heheh. This is exactly what I do for my websites:

   <script language="javascript">
     var date = "$Date$";
     document.write("Last Modified: " + date.substring(7, 26));
   </script>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 29 17:13:33 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.