aboutsummaryrefslogtreecommitdiffhomepage
path: root/version
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-04-16 10:37:32 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-16 11:34:48 -0700
commitb7dc24298dc69ffb62fd69cd735c0672b2e27dd2 (patch)
tree89f710d3e6b15d260453cfd5e542e10973ee14ce /version
parent4b52b918d360b40efd1b4c1f336796689f27c961 (diff)
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.
Diffstat (limited to 'version')
-rw-r--r--version1
1 files changed, 1 insertions, 0 deletions
diff --git a/version b/version
new file mode 100644
index 00000000..49d59571
--- /dev/null
+++ b/version
@@ -0,0 +1 @@
+0.1