Hi,
If you want to substitute variable with Subversion data, you must create a file with the Subversion's variable and lauch a command to told to Subversion to replace them.
Possible variable are:
Date
- This keyword describes the last time the file was known to have been changed in the repository, and is of the form
$Date: 2006-07-22 21:42:37 -0700 (Sat, 22 Jul 2006) $
. It may also be specified as LastChangedDate
.
Revision
- This keyword describes the last known revision in which this file changed in the repository, and looks something like
$Revision: 144 $
. It may also be specified as LastChangedRevision
or Rev
.
Author
- This keyword describes the last known user to change this file in the repository, and looks something like
$Author: harry $
. It may also be specified as LastChangedBy
.
HeadURL
- This keyword describes the full URL to the latest version of the file in the repository, and looks something like
$HeadURL: http://svn.collab.net/repos/trunk/README $
. It may be abbreviated as URL
.
Id
- This keyword is a compressed combination of the other keywords. Its substitution looks something like
$Id: calc.c 148 2006-07-28 21:30:43Z sally $
, and is interpreted to mean that the file calc.c
was last changed in revision 148 on the evening of July 28, 2006 by the user sally
.
You can create a version.properties file and set this content:
$HeadURL$
$Author$
$Date$
$Revision$
After that launch this command in terminal:
svn propset svn:keywords "Date HeadURL Author Revision" version.properties
When you will check out the project, Subversion will replace data...