Skip to content

Commit

Permalink
Never put the release number in the tarball name for tagged versions
Browse files Browse the repository at this point in the history
... when the version is given using DIST_VERSION!
  • Loading branch information
jonas committed Sep 26, 2007
1 parent dcae5a1 commit 201f10e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Expand Up @@ -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)"'

Expand Down

0 comments on commit 201f10e

Please sign in to comment.