mirror of https://git.wownero.com/dsc/mxe.git
refactor macro MXE_GET_GITHUB_ALL_TAGS
It is needed to get full list of tags and apply grep or sed manually.
This commit is contained in:
parent
a903d59466
commit
b52d3c0c9c
8
Makefile
8
Makefile
|
@ -143,9 +143,13 @@ define MXE_GET_GITHUB_SHA
|
||||||
| head -1
|
| head -1
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define MXE_GET_GITHUB_TAGS
|
define MXE_GET_GITHUB_ALL_TAGS
|
||||||
$(WGET) -q -O- 'https://api.github.com/repos/$(strip $(1))/git/refs/tags/' \
|
$(WGET) -q -O- 'https://api.github.com/repos/$(strip $(1))/git/refs/tags/' \
|
||||||
| $(SED) -n 's#.*"ref": "refs/tags/\([^"]*\).*#\1#p' \
|
| $(SED) -n 's#.*"ref": "refs/tags/\([^"]*\).*#\1#p'
|
||||||
|
endef
|
||||||
|
|
||||||
|
define MXE_GET_GITHUB_TAGS
|
||||||
|
$(MXE_GET_GITHUB_ALL_TAGS, $(1)) \
|
||||||
| $(SED) 's,^$(strip $(2)),,g' \
|
| $(SED) 's,^$(strip $(2)),,g' \
|
||||||
| $(SORT) -V \
|
| $(SORT) -V \
|
||||||
| tail -1
|
| tail -1
|
||||||
|
|
Loading…
Reference in New Issue