build: ease pattern matching to be less pedantic about RC
authorDave Cottlehuber <dch@skunkwerks.at>
Wed, 2 May 2018 08:13:33 +0000 (08:13 +0000)
committerJan Lehnardt <jan@apache.org>
Sat, 14 Jul 2018 10:37:32 +0000 (12:37 +0200)
commit768e9ebb9c53afcd0da3301841e945b54d0a3b49
treec2c943178eae8d3a30a5d1c5541dfd572f78cfb7
parent4ea7210631fb1515fe5a306988af046fe4aff2af
build: ease pattern matching to be less pedantic about RC

git-describe may have changed output formats. The previous regex doesn't
allow any trailing content, and git-describe always appends -g<SHA> unless
abbrev=0 is added.

This approach pulls out only the matching tag, leaving behind any
trailing garbage from git-describe, and as a bonus allows tagging a
commit from within a branch, and running a release directly from the
branch without needing to re-check out the tag itself.
Makefile