22 #ifdef HAVE_BUILD_INFO
23 #include <obj/build.h>
34 #define BUILD_DESC BUILD_GIT_TAG
35 #define BUILD_SUFFIX ""
37 #define BUILD_DESC "v" PACKAGE_VERSION
38 #if CLIENT_VERSION_IS_RELEASE
39 #define BUILD_SUFFIX ""
40 #elif defined(BUILD_GIT_COMMIT)
41 #define BUILD_SUFFIX "-" BUILD_GIT_COMMIT
42 #elif defined(GIT_COMMIT_ID)
43 #define BUILD_SUFFIX "-g" GIT_COMMIT_ID
45 #define BUILD_SUFFIX "-unk"
51 return strprintf(
"%d.%d.%d", nVersion / 10000, (nVersion / 100) % 100, nVersion % 100);
63 std::string
FormatSubVersion(
const std::string&
name,
int nClientVersion,
const std::vector<std::string>& comments)
65 std::ostringstream ss;
68 if (!comments.empty())
70 std::vector<std::string>::const_iterator it(comments.begin());
72 for(++it; it != comments.end(); ++it)
83 std::string strCopyrightHolders = strPrefix + copyright_devs;
86 if (copyright_devs.find(
"Bitcoin Core") == std::string::npos) {
87 strCopyrightHolders +=
"\n" + strPrefix +
"The Bitcoin Core developers";
89 return strCopyrightHolders;
94 const std::string URL_SOURCE_CODE =
"<https://github.com/bitcoin/bitcoin>";
98 strprintf(
_(
"Please contribute if you find %s useful. "
101 strprintf(
_(
"The source code is available from %s.").translated, URL_SOURCE_CODE) +
104 _(
"This is experimental software.").
translated +
"\n" +
105 strprintf(
_(
"Distributed under the MIT software license, see the accompanying file %s or %s").translated,
"COPYING",
"<https://opensource.org/licenses/MIT>") +
#define COPYRIGHT_HOLDERS_SUBSTITUTION
#define COPYRIGHT_HOLDERS
const std::string CLIENT_NAME("Satoshi")
Name of client reported in the 'version' message.
std::string CopyrightHolders(const std::string &strPrefix)
std::string FormatSubVersion(const std::string &name, int nClientVersion, const std::vector< std::string > &comments)
Format the subversion field according to BIP 14 spec (https://github.com/bitcoin/bips/blob/master/bip...
#define BUILD_DESC
git will put "#define GIT_COMMIT_ID ..." on the next line inside archives.
static std::string FormatVersion(int nVersion)
std::string FormatFullVersion()
std::string LicenseInfo()
Returns licensing information (for -version)
bilingual_str _(const char *psz)
Translation function.