|
|
@ -40,6 +40,9 @@ const std::string CLIENT_NAME("Satoshi"); |
|
|
|
# define GIT_COMMIT_DATE "$Format:%cD$" |
|
|
|
# define GIT_COMMIT_DATE "$Format:%cD$" |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define BUILD_DESC_WITH_SUFFIX(maj,min,rev,build,suffix) \ |
|
|
|
|
|
|
|
"v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-" DO_STRINGIZE(suffix) |
|
|
|
|
|
|
|
|
|
|
|
#define BUILD_DESC_FROM_COMMIT(maj,min,rev,build,commit) \ |
|
|
|
#define BUILD_DESC_FROM_COMMIT(maj,min,rev,build,commit) \ |
|
|
|
"v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-g" commit |
|
|
|
"v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-g" commit |
|
|
|
|
|
|
|
|
|
|
@ -47,7 +50,9 @@ const std::string CLIENT_NAME("Satoshi"); |
|
|
|
"v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-unk" |
|
|
|
"v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-unk" |
|
|
|
|
|
|
|
|
|
|
|
#ifndef BUILD_DESC |
|
|
|
#ifndef BUILD_DESC |
|
|
|
# ifdef GIT_COMMIT_ID |
|
|
|
# ifdef BUILD_SUFFIX |
|
|
|
|
|
|
|
# define BUILD_DESC BUILD_DESC_WITH_SUFFIX(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD, BUILD_SUFFIX) |
|
|
|
|
|
|
|
# elif defined(GIT_COMMIT_ID) |
|
|
|
# define BUILD_DESC BUILD_DESC_FROM_COMMIT(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD, GIT_COMMIT_ID) |
|
|
|
# define BUILD_DESC BUILD_DESC_FROM_COMMIT(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD, GIT_COMMIT_ID) |
|
|
|
# else |
|
|
|
# else |
|
|
|
# define BUILD_DESC BUILD_DESC_FROM_UNKNOWN(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD) |
|
|
|
# define BUILD_DESC BUILD_DESC_FROM_UNKNOWN(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD) |
|
|
|