From: Jakub Narebski Date: Fri, 1 Jun 2007 16:34:28 +0000 (+0200) Subject: Refresh VERSION file when building distribution tarball in "make dist" X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b253ee86a072bf5232ec674c6483e07c29806a64;p=tig.git Refresh VERSION file when building distribution tarball in "make dist" Overwrite contents of VERSION file from the HEAD revision with the current version (at the time of building), so VERSION file in the tarball generated by "make dist" (and which follows also rpm package generated by "make rpm") is up to date. Otherwise for example when building rpm it will be compiled with wrong version string. Signed-off-by: Jakub Narebski Signed-off-by: Jonas Fonseca --- diff --git a/Makefile b/Makefile index 0e42de6..bc8086f 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,10 @@ dist: tig.spec git-archive --format=tar --prefix=$(TARNAME)/ HEAD > $(TARNAME).tar @mkdir -p $(TARNAME) @cp tig.spec $(TARNAME) - tar rf $(TARNAME).tar $(TARNAME)/tig.spec + echo $(VERSION) > $(TARNAME)/VERSION + tar rf $(TARNAME).tar \ + $(TARNAME)/tig.spec \ + $(TARNAME)/VERSION @rm -rf $(TARNAME) gzip -f -9 $(TARNAME).tar