diff options
author | lloyd <[email protected]> | 2011-02-07 22:11:23 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-02-07 22:11:23 +0000 |
commit | 02ed4e271a6287a0c23b137e826e62d2be752b82 (patch) | |
tree | e50ccc16f91dc52671fdd24dd5d36d4685968511 /src/build-data | |
parent | 80d591ec716fb6cea829db45b68da1af4afd1d0e (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 'src/build-data')
-rw-r--r-- | src/build-data/buildh.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in index fb5e5fabc..2682d2ad9 100644 --- a/src/build-data/buildh.in +++ b/src/build-data/buildh.in @@ -15,9 +15,10 @@ #define BOTAN_VERSION_MAJOR %{version_major} #define BOTAN_VERSION_MINOR %{version_minor} #define BOTAN_VERSION_PATCH %{version_patch} - #define BOTAN_VERSION_DATESTAMP %{version_datestamp} +#define BOTAN_DISTRIBUTION_INFO "%{distribution_info}" + #ifndef BOTAN_DLL #define BOTAN_DLL %{dll_import_flags} #endif |