haproxy/src/version.c
Willy Tarreau 909b9d852b BUILD: add a new file "version.c" to carry version updates
While testing fixes, it's sometimes confusing to rebuild only one C file
(e.g. a mux) and not to have the correct commit ID reported in "haproxy -v"
nor on the stats page.

This patch adds a new "version.c" file which is always rebuilt. It's
very small and contains only 3 variables derived from the various
version strings. These variables are used instead of the macros at the
few places showing the version. This way the output version of the
running code is always correct for the parts that were rebuilt.
2019-01-04 18:20:32 +01:00

12 lines
366 B
C

/*
* Version reporting : all user-visible version information should come from
* this file so that rebuilding only this one is enough to report the latest
* code version.
*/
#include <common/version.h>
const char *haproxy_version = HAPROXY_VERSION;
const char *haproxy_date = HAPROXY_DATE;
const char *stats_version_string = STATS_VERSION_STRING;