]> git.notmuchmail.org Git - notmuch/commit
Makefile: Add an explicit version file to the repository.
authorCarl Worth <cworth@cworth.org>
Fri, 16 Apr 2010 17:37:32 +0000 (10:37 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 16 Apr 2010 18:34:48 +0000 (11:34 -0700)
commitb7dc24298dc69ffb62fd69cd735c0672b2e27dd2
tree89f710d3e6b15d260453cfd5e542e10973ee14ce
parent4b52b918d360b40efd1b4c1f336796689f27c961
Makefile: Add an explicit version file to the repository.

We do this so that "git archive" produces a usable tar file without us
having to post-modify it, (since tools like git-buildpackage might not
give us an easy way to hook into the tar-file-creation step).

To support this we also have to change our preference to prefer the
git-described-based version (if available) and only if not available
do we fallback to using what's in the "version" file. Finally, we also
ovverride this preference when releasing, (where what's in the
"version" file wins).

Note that using our Makefile's rule to create a tar file still will
insert the git-based version into the tar file. This is useful for
creating snapshots which will correctly report the git version from
which they were created.
Makefile.local
version [new file with mode: 0644]