summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2015-11-15 14:09:56 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2015-11-15 15:41:26 (GMT)
commitb28501f0315674266082a060e80f419f4590645c (patch)
treefb8f03374bbcc2056cf756d3b84fedbe45400bf9 /Makefile
parentde35582bc463a8bbf96e7f1d61b5be493cffe30f (diff)
downloadmxe-b28501f0315674266082a060e80f419f4590645c.zip
mxe-b28501f0315674266082a060e80f419f4590645c.tar.gz
mxe-b28501f0315674266082a060e80f419f4590645c.tar.bz2
MXE_GET_GITHUB_TAGS: new argument, stripped prefix
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2966dec..1d70314 100644
--- a/Makefile
+++ b/Makefile
@@ -139,6 +139,7 @@ endef
define MXE_GET_GITHUB_TAGS
$(WGET) -q -O- 'https://api.github.com/repos/$(strip $(1))/git/refs/tags/' \
| $(SED) -n 's#.*"ref": "refs/tags/\([^"]*\).*#\1#p' \
+ | $(SED) 's,^$(strip $(2)),,g' \
| $(SORT) -V \
| tail -1
endef