Committed to semantic versioning
as prompted by #365, #430, #447 and a thread on the google group. - split version bumping out of generateSingleHeader script - separate scripts for bumping each version component - "build" number only incremented for "develop" builds
This commit is contained in:
1 parent
f5fef1ebed
commit
21f7ef6fdc
13 files changed
+239
-133
No files matched your search
@@ -14,19 +14,20 @@ namespace Catch {
|
||||
struct Version {
|
||||
Version( unsigned int _majorVersion,
|
||||
unsigned int _minorVersion,
|
||||
unsigned int _buildNumber,
|
||||
char const* const _branchName )
|
||||
: majorVersion( _majorVersion ),
|
||||
minorVersion( _minorVersion ),
|
||||
buildNumber( _buildNumber ),
|
||||
branchName( _branchName )
|
||||
{}
|
||||
unsigned int _patchNumber,
|
||||
std::string const& _branchName,
|
||||
unsigned int _buildNumber );
|
||||
|
||||
unsigned int const majorVersion;
|
||||
unsigned int const minorVersion;
|
||||
unsigned int const buildNumber;
|
||||
char const* const branchName;
|
||||
unsigned int const patchNumber;
|
||||
|
||||
// buildNumber is only used if branchName is not null
|
||||
std::string const branchName;
|
||||
unsigned int const buildNumber;
|
||||
|
||||
friend std::ostream& operator << ( std::ostream& os, Version const& version );
|
||||
|
||||
private:
|
||||
void operator=( Version const& );
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user