github: use case insensitive filter and fix typo

This commit is contained in:
Tony Theodore 2017-07-22 18:01:41 +10:00
parent 1ec5fc610a
commit da3b923846
1 changed files with 2 additions and 2 deletions

View File

@ -111,10 +111,10 @@ endef
# called with owner/repo, tag prefix, tag suffix, filter-out, version sep
define MXE_GET_GH_TAG
$(MXE_GET_GH_TAGS) \
| $(if $(4),grep -v '$(strip $(4))') \
| $(if $(4),grep -vi '$(strip $(4))') \
| $(SED) -n 's,^$(strip $(2))\([^"]*\)$(strip $(3))$$,\1,p' \
| tr '$(strip $(5))' '.' \
| $(SORT) -V
| $(SORT) -V \
| tail -1
endef