github macros: exclude trailing html entities from release

Sometimes the release number has some trailing junk starting with
""".
This commit is contained in:
Mark Brand 2019-05-14 10:52:19 +02:00
parent db5844e813
commit 4bf2782956
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ endef
# called with owner/repo/releases[/latest],tag prefix, tag suffix, filter-out, version sep
define MXE_GET_GH_RELEASE
$(WGET) -q -O- 'https://github.com/$(strip $(1))' \
| $(SED) -n 's,.*releases/tag/\([^"]*\)".*,\1,p' \
| $(SED) -n 's,.*releases/tag/\([^"&]*\)".*,\1,p' \
| $(if $(4),grep -vi '$(strip $(4))') \
| $(SED) -n 's,^$(strip $(2))\([^"]*\)$(strip $(3))$$,\1,p' \
| tr '$(strip $(5))' '.' \