|
|
|
@ -40,6 +40,9 @@ const std::string CLIENT_NAME("Satoshi");
@@ -40,6 +40,9 @@ const std::string CLIENT_NAME("Satoshi");
|
|
|
|
|
# define GIT_COMMIT_DATE "$Format:%cD$" |
|
|
|
|
#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) \ |
|
|
|
|
"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");
@@ -47,7 +50,9 @@ const std::string CLIENT_NAME("Satoshi");
|
|
|
|
|
"v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-unk" |
|
|
|
|
|
|
|
|
|
#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) |
|
|
|
|
# else |
|
|
|
|
# define BUILD_DESC BUILD_DESC_FROM_UNKNOWN(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD) |
|
|
|
|