summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-11-16 09:25:51 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-11-16 09:25:51 (GMT)
commit656d5c5066ddbe1f9fea55dcd6e6b9d635a5d21a (patch)
tree611e8f613e8aa60d3f1bbe431feb25e43e2c7130 /Makefile
parent51f6aef1f79e24e9042c34f71929b7b1703c7642 (diff)
parentb28501f0315674266082a060e80f419f4590645c (diff)
downloadmxe-656d5c5066ddbe1f9fea55dcd6e6b9d635a5d21a.zip
mxe-656d5c5066ddbe1f9fea55dcd6e6b9d635a5d21a.tar.gz
mxe-656d5c5066ddbe1f9fea55dcd6e6b9d635a5d21a.tar.bz2
Merge pull request #998 from LuaAndC/update-gh-packages
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 adaf5dc..5dbb519 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