]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: add a new file "version.c" to carry version updates
authorWilly Tarreau <w@1wt.eu>
Fri, 4 Jan 2019 17:20:32 +0000 (18:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 4 Jan 2019 17:20:32 +0000 (18:20 +0100)
commit909b9d852b9c436634431af26a8d14a9da554c90
tree6159c4a3485dd6530dcb75f83ec27851bccbc8bc
parente6e52366c185db13ccaf0d2d669909c157d55923
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.
Makefile
include/common/version.h
src/haproxy.c
src/stats.c
src/version.c [new file with mode: 0644]