From 24d990f9bb9401952bd30619fe5b723019f14e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 31 Oct 2018 21:21:13 +0100 Subject: autopkg: add possibility to consider all tags --- autopkg-tag.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autopkg-tag.mk b/autopkg-tag.mk index 9b80418..5c7bb28 100644 --- a/autopkg-tag.mk +++ b/autopkg-tag.mk @@ -2,7 +2,12 @@ AUTOPKG_VARIANT:=tag include $(TOPDIR)/feeds/personal/autopkg-head.mk +ifeq ($(PKG_SOURCE_ALL_TAGS),y) +PKG_SOURCE_VERSION:=$(shell git $(GIT_ARGS) tag | sort -V | tail -1) +PKG_VERSION:=$(PKG_SOURCE_VERSION) +else PKG_SOURCE_VERSION:=$(shell git $(GIT_ARGS) tag | grep '^v' | sort -V | tail -1) PKG_VERSION:=$(subst v%,%,$(PKG_SOURCE_VERSION)) +endif include $(TOPDIR)/feeds/personal/autopkg-tail.mk -- cgit v1.2.3