aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-02-07 22:11:23 +0000
committerlloyd <[email protected]>2011-02-07 22:11:23 +0000
commit02ed4e271a6287a0c23b137e826e62d2be752b82 (patch)
treee50ccc16f91dc52671fdd24dd5d36d4685968511 /checks
parent80d591ec716fb6cea829db45b68da1af4afd1d0e (diff)
Add a new configure.py option --distribution-info which sets a macro
in build.h named BOTAN_DISTRIBUTION_INFO. The default value is 'unspecified'. People packaging botan could set this to another value, for instance 'Gentoo 1.9.13-r3' or 'Debian 1.9.13-1', or 'pristine' to indicate a completely unmodified/stock version. This was suggested by Zooko for Crypto++ in http://sourceforge.net/apps/trac/cryptopp/ticket/11 and seemed like an idea worth stealing. Don't default the version datestmap to the current day if unset, instead set to zero. This allows applications to detect unreleased versions. Document that version_datestamp will return zero for unreleased versions. Change the version_string function to return more information about the current version, including the release date and distribution information. It will now return strings like: Botan 1.9.13 (released 20110207, distribution Gentoo 1.9.13-r3) or for an unreleased version: Botan 1.9.13 (unreleased version, distribution unspecified)
Diffstat (limited to 'checks')
-rw-r--r--checks/check.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/checks/check.cpp b/checks/check.cpp
index 601e41227..e32f57ed7 100644
--- a/checks/check.cpp
+++ b/checks/check.cpp
@@ -127,8 +127,7 @@ int main(int argc, char* argv[])
if(opts.is_set("help") || argc <= 1)
{
std::cerr << "Test driver for "
- << Botan::version_string()
- << " (released " << Botan::version_datestamp() << ")\n"
+ << Botan::version_string() << "\n"
<< "Options:\n"
<< " --test || --validate: Run tests (do this at least once)\n"
<< " --benchmark: Benchmark everything\n"