diff options
-rw-r--r-- | autopkg-tag.mk | 5 |
1 files changed, 5 insertions, 0 deletions
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 |