dolik.rce Messages: 1758 Registered: August 2008 Location: Czech Republic
I just recently talked to Mirek about this. I was suggesting using svn hook to fill it (see this thread). But when I investigated more, I found out, it's actually not possible by the means of subversion.
Moreover, I've learned that it is actually stupid idea to have automatically generated files under version control. It is a) unnecesary overload b) possible source of problems. The correct way is implementing this in build procces.
If you are building from src packages from google, this was already done by the script on the infrastructure server and version.h is filled with correct revision.
If you're building from svn checkout, you should determine the version from the svn and feed it into the version.h. You can use svnversion tool or look on in .svn/entries, line 4.
If you are using the builddeb script I wrote and it's not working, then I'm publicly ashamed and will supply patch ASAP