]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: simplify the date and version retrieval in the makefile
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Dec 2013 08:31:06 +0000 (09:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Dec 2013 08:34:11 +0000 (09:34 +0100)
commit689e4d733f54b12bea8ac9d1768ed8162c69d248
tree9ac704fae14947e2bf8e17ee88f050e55f8de135
parent439cfde55b0e3ecb030de9ea1181fcc6a1f9b9c7
BUILD: simplify the date and version retrieval in the makefile

The makefile currently uses some complex and non-always portable
methods to retrieve the date and version (eg: linux's date command).

For the date, we can use git log -1 --pretty=format:%ci instead of
date+sed. For the version, it's easier and safer to count single log
lines.

Note that the VERSION variable was wrong since it could contain the
version+subversion instead of just the version. This is now fixed by
adding --abbrev=0 in describe.
Makefile