Mercurial > dovecot > core-2.2
diff update-version.sh @ 22046:f4076be3efe9
lib: Add dovecot_build_info variable containing Dovecot build information.
By default this includes the version, including the git hash. The idea is
that this version information would be available in all the core dumps.
The DOVECOT_BUILD_INFO can be overridden by compiling with:
DOVECOT_BUILD_INFO='"build info"' make
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 18 May 2017 12:32:12 +0300 |
parents | 76aa68b2b265 |
children |
line wrap: on
line diff
--- a/update-version.sh Tue May 16 17:53:23 2017 +0300 +++ b/update-version.sh Thu May 18 12:32:12 2017 +0300 @@ -4,6 +4,7 @@ BUILDDIR="${2:-`pwd`}" VERSION_H="dovecot-version.h" VERSION_HT="dovecot-version.h.tmp" +DOVECOT_BUILD_INFO=${DOVECOT_BUILD_INFO:-DOVECOT_VERSION_FULL} abspath() { #$1 the path @@ -45,6 +46,7 @@ #define DOVECOT_VERSION_H #define DOVECOT_VERSION_FULL VERSION" (${GITID})" +#define DOVECOT_BUILD_INFO ${DOVECOT_BUILD_INFO} #endif /* DOVECOT_VERSION_H */ EOF @@ -54,6 +56,7 @@ #define DOVECOT_VERSION_H #define DOVECOT_VERSION_FULL VERSION +#define DOVECOT_BUILD_INFO ${DOVECOT_BUILD_INFO} #endif /* DOVECOT_VERSION_H */ EOF