svnversion feature
From: Elmar Grom <egrom_at_lightandmotion.com>
Date: Thu, 7 Jun 2012 16:27:27 +0000
Hi,
I am in the process of putting together make files for firmware builds and run into an issue that I didn't see addressed in any of the issues lists. One of the things I want to do is to tag the SVN revision that a binary was built from onto the file name (this was actually requested by manufacturing and I agree with their view point). The revision is easy enough to get from svnversion. The problem is, that when I run it in my working directory, inevitably I get a mixed revision result, even if I have just committed (something like 3:26). While this may be informative to me as a developer, this is not something I can embed in a file name. At the same time Make has no ability to extract just the part after the colon.
I see three solutions to this problem:
1. create another directory and do a clean checkout of the version I just committed. I tried this and it works well. Cumbersome though.
Thanks for taking the time to read and form an opinion about this.
Elmar
|
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.