]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: build: handle whitespaces in wc -l output
authorLukas Tribus <luky-37@hotmail.com>
Mon, 14 Apr 2014 13:38:26 +0000 (15:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2014 13:53:32 +0000 (15:53 +0200)
commit914c0d67b21d338ae332a4e75325513abbaa81fe
tree4294eccc4e7dd27bbe7e1128756d2083a1a357df
parente5eddafa89ee2e468da37938a002761e3f2126b4
BUG/MINOR: build: handle whitespaces in wc -l output

Certain implementations (for example ksh/OpenBSD) prefix the
'wc -l' output with whitespaces. This breaks the build since
689e4d733 ("BUILD: simplify the date and version retrieval in
the makefile").

Fix this by piping the wc output into tr -dc '0-9'.

Workaround is to build with IGNOREGIT=1.

HAProxy-1.4 is affected as well.
Makefile