mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-11 01:26:58 +02:00
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.
12 lines
366 B
C
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;
|