From: Jonas Fonseca Date: Wed, 26 Sep 2007 23:28:35 +0000 (+0200) Subject: Never put the release number in the tarball name for tagged versions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=201f10e2aeffaec27636572224d79ea2577532d2;p=tig.git Never put the release number in the tarball name for tagged versions ... when the version is given using DIST_VERSION! --- 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)"'