From 526b03ad2ba260269f3741bfd59448a8b0f6de2f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 19 Apr 2013 14:27:32 +0100 Subject: fix tag pattern to release/* so we can match by git refspec --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 523fa7c..5c1ee82 100644 --- a/Makefile +++ b/Makefile @@ -42,8 +42,8 @@ install: # the Makefile component version matches the git tag version and the # tar is apropriately named for the component being generated dist: - $(eval GIT_TAG := $(shell git describe --abbrev=0 --match "v*")) - $(eval GIT_VER := $(shell x="$(GIT_TAG)"; echo "$${x#v}")) + $(eval GIT_TAG := $(shell git describe --abbrev=0 --match "release/*")) + $(eval GIT_VER := $(shell x="$(GIT_TAG)"; echo "$${x#release/}")) $(if $(subst $(GIT_VER),,$(COMPONENT_VERSION)), $(error Component Version "$(COMPONENT_VERSION)" and GIT tag version "$(GIT_VER)" do not match)) $(eval DIST_FILE := $(COMPONENT)-${GIT_VER}) $(Q)git archive --format=tar.gz --prefix=$(DIST_FILE)/ -o $(DIST_FILE).tar.gz $(GIT_TAG) -- cgit v1.2.3