Skip to content

Commit

Permalink
Rework the VERSION mangling in the make dist rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas committed May 10, 2012
1 parent 66a168d commit 4bfaaa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ strip: $(PROGS)

dist: configure tig.spec
@mkdir -p $(TARNAME) && \
cp tig.spec configure config.h.in aclocal.m4 $(TARNAME) && \
echo $(VERSION) > $(TARNAME)/VERSION
cp Makefile tig.spec configure config.h.in aclocal.m4 $(TARNAME) && \
sed -i "s/VERSION\s=\s[0-9]\+[.][0-9]\+/VERSION = $(VERSION)/" $(TARNAME)/Makefile
git archive --format=tar --prefix=$(TARNAME)/ HEAD | \
tar --delete $(TARNAME)/VERSION > $(TARNAME).tar && \
tar --delete $(TARNAME)/Makefile > $(TARNAME).tar && \
tar rf $(TARNAME).tar `find $(TARNAME)/*` && \
gzip -f -9 $(TARNAME).tar && \
md5sum $(TARNAME).tar.gz > $(TARNAME).tar.gz.md5
Expand Down
1 change: 0 additions & 1 deletion contrib/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ if test -n "$VERSION"; then
git checkout master

# Update files which should reference the version.
echo "$VERSION" > VERSION
sed -i "s/VERSION\s=\s[0-9]\+[.][0-9]\+/VERSION = $VERSION/" Makefile
perl -pi -e 's/^tig master.*/@@TITLE@@/ms' NEWS
perl -pi -e "s/^@@TITLE@@.*/$TITLE/" NEWS
Expand Down

0 comments on commit 4bfaaa2

Please sign in to comment.