From 201f10e2aeffaec27636572224d79ea2577532d2 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 27 Sep 2007 01:28:35 +0200 Subject: [PATCH] Never put the release number in the tarball name for tagged versions ... when the version is given using DIST_VERSION! --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index cee61d8..c8580bf 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,14 @@ PROGS = tig MANDOC = tig.1 tigrc.5 HTMLDOC = tig.1.html tigrc.5.html manual.html README.html ALLDOC = $(MANDOC) $(HTMLDOC) manual.html-chunked manual.pdf + +# Never include the release number in the tarname for tagged +# versions. +ifneq ($(if $(DIST_VERSION),$(words $(RPM_VERLIST))),2) TARNAME = tig-$(RPM_VERSION)-$(RPM_RELEASE) +else +TARNAME = tig-$(RPM_VERSION) +endif override CFLAGS += '-DTIG_VERSION="$(VERSION)"' -- 2.30.2