#6342 updated copyright in cmd version to use build date
This commit is contained in:
parent
1fac0e2032
commit
71f2a18cd3
4 changed files with 16 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ Bug fixes:
|
||||||
- #6755 Fixed Vulnerability in vreadf function detected by Static analysis
|
- #6755 Fixed Vulnerability in vreadf function detected by Static analysis
|
||||||
- #6758 Account name with space on windows causes synergy to error when starting
|
- #6758 Account name with space on windows causes synergy to error when starting
|
||||||
- #6760 Synergy loses license when creating a System scope config
|
- #6760 Synergy loses license when creating a System scope config
|
||||||
|
- #6342 Updated copyright year in version to use build date
|
||||||
|
|
||||||
Enhancements:
|
Enhancements:
|
||||||
- #6750 Integrate SonarCloud for static analysis and test coverage
|
- #6750 Integrate SonarCloud for static analysis and test coverage
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,9 @@
|
||||||
|
|
||||||
#include "common/Version.h"
|
#include "common/Version.h"
|
||||||
|
|
||||||
|
const char* kBuildYear = __DATE__ + 7;
|
||||||
const char* kApplication = "Synergy";
|
const char* kApplication = "Synergy";
|
||||||
const char* kCopyright = "Copyright (C) 2012-2019 Symless Ltd.\n"
|
const char* kCopyright = "Copyright (C) 2012-%s Symless Ltd.\n"
|
||||||
"Copyright (C) 2008-2014 Nick Bolton\n"
|
"Copyright (C) 2008-2014 Nick Bolton\n"
|
||||||
"Copyright (C) 2002-2014 Chris Schoeneman";
|
"Copyright (C) 2002-2014 Chris Schoeneman";
|
||||||
const char* kContact = "Email: engineering@symless.com";
|
const char* kContact = "Email: engineering@symless.com";
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ extern const char* kApplication;
|
||||||
extern const char* kCopyright;
|
extern const char* kCopyright;
|
||||||
extern const char* kContact;
|
extern const char* kContact;
|
||||||
extern const char* kWebsite;
|
extern const char* kWebsite;
|
||||||
|
extern const char* kBuildYear;
|
||||||
|
|
||||||
// build version. follows linux kernel style: an even minor number implies
|
// build version. follows linux kernel style: an even minor number implies
|
||||||
// a release version, odd implies development version.
|
// a release version, odd implies development version.
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,17 @@ App::~App()
|
||||||
void
|
void
|
||||||
App::version()
|
App::version()
|
||||||
{
|
{
|
||||||
static const int buffer_size = 500;
|
static const size_t buffer_size = 500;
|
||||||
|
static const size_t cpight_size = 200;
|
||||||
|
|
||||||
|
char copyrightBuffer[cpight_size];
|
||||||
|
snprintf(
|
||||||
|
copyrightBuffer,
|
||||||
|
cpight_size,
|
||||||
|
kCopyright,
|
||||||
|
kBuildYear
|
||||||
|
);
|
||||||
|
|
||||||
char buffer[buffer_size];
|
char buffer[buffer_size];
|
||||||
snprintf(
|
snprintf(
|
||||||
buffer,
|
buffer,
|
||||||
|
|
@ -93,7 +103,7 @@ App::version()
|
||||||
kVersion,
|
kVersion,
|
||||||
kProtocolMajorVersion,
|
kProtocolMajorVersion,
|
||||||
kProtocolMinorVersion,
|
kProtocolMinorVersion,
|
||||||
kCopyright
|
copyrightBuffer
|
||||||
);
|
);
|
||||||
|
|
||||||
std::cout << buffer << std::endl;
|
std::cout << buffer << std::endl;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue