Project in Delphi 2007, stored in SVN.
“Project settings – version info” – there the project version is stored.
When changing the project version *.dproj file and *.res file are changing.
And I have to commit them to SVN every time when project version changes.
I want to manage project version with SVN.
For example, when building the project from svn tag named “1.12.2” and revision 12993 I want to get a binary *.exe file with version 1.12.2.12993.
To make it, I should create a *.rc file with text presentation of version info. Then make a *.res file and include it to project with {$R version.res}
What shold I write to *.rc file? What should it’s structure look like?
White an example, please.
Thanks.
The
VERSIONINFOresource is documented on MSDN. A typical such resource script looks like this:1 VERSIONINFO FILEVERSION 1,12,2,12993 PRODUCTVERSION 1,12,2,12993 FILEOS 0x40004L FILETYPE 0x1L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "000004E4" BEGIN VALUE "CompanyName", "My Company\0" VALUE "FileDescription", "My Program\0" VALUE "FileVersion", "My Program\0" VALUE "LegalCopyright", "My Company 2012\0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x0000 0x04E4 END END