summaryrefslogtreecommitdiff
path: root/autopkg-tag.mk
blob: b4d580c55803ddff5c0aed20937e044a41b6a3a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Autopkg tracking latest version tag
AUTOPKG_VARIANT:=tag
include $(INCLUDE_DIR)/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 $(INCLUDE_DIR)/autopkg-tail.mk