]> arthur.barton.de Git - bup.git/commit - main.py
cmd/version, etc: fix version number detection stuff.
authorAvery Pennarun <apenwarr@gmail.com>
Sat, 24 Apr 2010 21:10:02 +0000 (17:10 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Sat, 24 Apr 2010 21:10:02 +0000 (17:10 -0400)
commit7949755a2e9fc27ddcc9239efa6cd4c0f47f4d11
tree499da46bccd9c6e86db2e9ad46b00c1df42a9848
parent0e3565afb1cc11683eae5107d80d7d7ef66ed34c
cmd/version, etc: fix version number detection stuff.

Gabriel Filion pointed out that bup's version number (which we added to the
man pages automatically) was not detected when you used a bup tarball
generated from 'git archive' (or more likely, you let GitHub call 'git
archive' for you).  That makes sense, since our version detection was based
on having a .git directory around, which the tarball doesn't.

Instead, let's create a .gitattributes file and have it auto-substitute some
version information during 'git archive'.  Of course, if we actually *do*
have a .git directory, continue to use that.

While we're here, add a new 'bup version' command and alias "bup --version"
and "bup -V" to call it, since those options are pretty standard.
.gitignore
Documentation/Makefile
Makefile
cmd/version-cmd.py [new file with mode: 0755]
format-subst.pl [new file with mode: 0755]
lib/bup/.gitattributes [new file with mode: 0644]
lib/bup/_version.py.pre [new file with mode: 0644]
main.py