Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to automatically add revision number to version number #125

Closed
GoogleCodeExporter opened this issue Aug 12, 2015 · 3 comments
Closed
Assignees
Labels
comp-Scripts Related to Makefiles, wrappers, developer and testing scripts feature Allows new functionality maintainability Simplifies further code development (standardization, robustness) pri-Medium Worth assigning to a milestone
Milestone

Comments

@GoogleCodeExporter
Copy link

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 GoogleCodeExporter added OpSys-All comp-Scripts Related to Makefiles, wrappers, developer and testing scripts pri-Medium Worth assigning to a milestone maintainability Simplifies further code development (standardization, robustness) labels Aug 12, 2015
@GoogleCodeExporter
Copy link
Author

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

  • Added labels: Milestone-1.2
  • Removed labels: Milestone-1.1

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision r1213.

r1213 - 31fe7db

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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

@myurkin myurkin modified the milestone: 1.2 Aug 13, 2015
@myurkin myurkin added feature Allows new functionality and removed auto-migrated labels Aug 13, 2015
@myurkin myurkin self-assigned this Aug 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-Scripts Related to Makefiles, wrappers, developer and testing scripts feature Allows new functionality maintainability Simplifies further code development (standardization, robustness) pri-Medium Worth assigning to a milestone
Projects
None yet
Development

No branches or pull requests

2 participants