wsy2220 / a-dda

Automatically exported from code.google.com/p/a-dda
0 stars 0 forks source link

How to automatically add revision number to version number #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the version number is hard-coded in const.h and is updated manually. 
This is fine for major releases but may be not accurate for intermediate builds 
(bug fixes or new enhancements). The latter can be distributed among some users 
for testing purposes.

The idea is to somehow get the current revision number from the subversion 
during compilation and add it to version number, making it look like 
1.1a5.1034. However, further study is required to understand whether it is 
doable at all with acceptable complexity.

Original issue reported on code.google.com by yurkin on 30 Jan 2011 at 5:54

GoogleCodeExporter commented 9 years ago

Original comment by yurkin on 22 Apr 2011 at 2:42

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1213.

Original comment by yurkin on 30 Mar 2013 at 9:55

GoogleCodeExporter commented 9 years ago
This solution adds the revision number to the output of 'adda -V', like "ADDA 
v.1.1 (r1234)". For other output (like shape files) the short version (like 
1.1) is kept to minimize unnecessary diffs.

Original comment by yurkin on 30 Mar 2013 at 10:01