Code

Never put the release number in the tarball name for tagged versions
authorJonas Fonseca <fonseca@diku.dk>
Wed, 26 Sep 2007 23:28:35 +0000 (01:28 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Wed, 26 Sep 2007 23:29:18 +0000 (01:29 +0200)
... when the version is given using DIST_VERSION!

Makefile

index cee61d8c287ee03c13170fde028639d9e7708f94..c8580bf93c8c8854bc4b16396cf1d88e2e812ee8 100644 (file)
--- 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)"'