From b253ee86a072bf5232ec674c6483e07c29806a64 Mon Sep 17 00:00:00 2001 From: Jakub Narebski Date: Fri, 1 Jun 2007 18:34:28 +0200 Subject: [PATCH] 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 --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2