From b28501f0315674266082a060e80f419f4590645c Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Sun, 15 Nov 2015 14:09:56 +0000 Subject: MXE_GET_GITHUB_TAGS: new argument, stripped prefix --- Makefile | 1 + src/muparser.mk | 3 +-- src/pire.mk | 3 +-- 3 files changed, 3 insertions(+), 4 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 diff --git a/src/muparser.mk b/src/muparser.mk index 3783074..ecfe127 100644 --- a/src/muparser.mk +++ b/src/muparser.mk @@ -11,8 +11,7 @@ $(PKG)_URL := https://github.com/beltoforion/$(PKG)/archive/v$($(PKG)_VERSI $(PKG)_DEPS := gcc define $(PKG)_UPDATE - $(call MXE_GET_GITHUB_TAGS, beltoforion/muparser) | \ - $(SED) 's,^v,,g' + $(call MXE_GET_GITHUB_TAGS, beltoforion/muparser, v) endef define $(PKG)_BUILD diff --git a/src/pire.mk b/src/pire.mk index a9b8dfc..49b87a2 100644 --- a/src/pire.mk +++ b/src/pire.mk @@ -11,8 +11,7 @@ $(PKG)_URL := https://github.com/yandex/pire/archive/release-$($(PKG)_VERSI $(PKG)_DEPS := gcc define $(PKG)_UPDATE - $(call MXE_GET_GITHUB_TAGS, yandex/pire) | \ - $(SED) 's,^release-,,g' + $(call MXE_GET_GITHUB_TAGS, yandex/pire, release-) endef define $(PKG)_BUILD -- cgit v0.12