]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: do not rely on shell substitutions to determine git version
authorWilly Tarreau <w@1wt.eu>
Sat, 22 Jun 2019 06:24:16 +0000 (08:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 22 Jun 2019 06:28:32 +0000 (08:28 +0200)
commit3c55efb7dd0603023cc33bfce914073945140898
treef3d873fb265bc87030224777d3db2830a9cb7340
parente8d0719924cd842a608c9a612bab7f5718777a3d
BUILD: makefile: do not rely on shell substitutions to determine git version

Solaris's default shell doesn't support substitutions at the beginning or
end of variables, which are still used to determine the version based on
git. Since we added --abbrev=0 we don't need the last one. And using cut
it's trivial to replace the first one, actually simplifying the whole
expression.

This may be backported to all stable branches.
Makefile