diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-01-09 18:07:01 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-01-09 20:22:26 -0800 |
commit | 181129d24c83bfcbaa438579c5d3cd2531755232 (patch) | |
tree | 6be83afea866fe409bf56555fb346b3370807a5b /Makefile | |
parent | 5a2282de13c4da13f979185e652c8a08e2481fd1 (diff) | |
download | git-181129d24c83bfcbaa438579c5d3cd2531755232.tar.gz |
For release tarballs, include the proper version
When producing a release tarball, include a "version" file, which
GIT-VERSION-GEN can then use to do the right thing when building from a
tarball.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -489,7 +489,9 @@ dist: git.spec git-tar-tree ./git-tar-tree HEAD $(GIT_TARNAME) > $(GIT_TARNAME).tar @mkdir -p $(GIT_TARNAME) @cp git.spec $(GIT_TARNAME) - $(TAR) rf $(GIT_TARNAME).tar $(GIT_TARNAME)/git.spec + @echo $(GIT_VERSION) > $(GIT_TARNAME)/version + $(TAR) rf $(GIT_TARNAME).tar \ + $(GIT_TARNAME)/git.spec $(GIT_TARNAME)/version @rm -rf $(GIT_TARNAME) gzip -f -9 $(GIT_TARNAME).tar |