-
November 5th, 2013, 11:25 AM
#1
Version string best practices
I have a question that I know must have been solved a thousand times before, but I'd like to get the community's opinion on best practices.
In short: how should I manage the version string of my targets? Each target (library or executable) will conceptually have a unique version number, and I'd like to be able to query the versions of all libraries in use by an executable (as well as its own version) at runtime. I also need to be able to update the version number(s) from a script, not by hand.
I need a solution that works on linux, but I'd prefer for it to also work on Windows.
One thing I've thought about is having a "version" file at the top level of each repo (one git repo per target) containing nothing more than the version number, and using the "xxd -i version version.h" command to generate a static array I can compile into my code. However, this fails the "works on Windows" test, among other things.
Any suggestions?
-
November 5th, 2013, 06:09 PM
#2
Re: Version string best practices
Originally Posted by Lindley
Any suggestions?
Why not use a Version/Revision Control System.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|