]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: use :space: instead of digits to count commits
authorWilly Tarreau <w@1wt.eu>
Sat, 22 Jun 2019 05:51:02 +0000 (07:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 22 Jun 2019 05:58:28 +0000 (07:58 +0200)
commit30a6f6402e385e76870618e3b1950ac989e93612
treeb2bdfb713096fb55f9609cbc9869dbafd03ea665
parent76a80c710cbd8ca3d7dcd191d26cc7a450dee22e
BUILD: makefile: use :space: instead of digits to count commits

The 'tr' command on Solaris doesn't conform to POSIX and requires
brackets around ranges. So the sequence '0-9' is understood as the
3 characters '0', '-', and '9'. This causes tagged versions (those
with no commit after the last commit) to be numberred as an empty
string, resulting in an error being reported while computing the
version number.

All implementations support '[:space:]' to delete heading spaces,
so let's use this instead.

This may be backported to all stable versions.
Makefile