From 4bf2782956cdc53bdde6690360df926ee8fc9831 Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Tue, 14 May 2019 10:52:19 +0200 Subject: [PATCH] github macros: exclude trailing html entities from release Sometimes the release number has some trailing junk starting with """. --- mxe.github.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxe.github.mk b/mxe.github.mk index 91c9d2e9..ccb82257 100644 --- a/mxe.github.mk +++ b/mxe.github.mk @@ -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))' '.' \