Make inter-release --version output more useful.
commit441bb2a1c354b07da17ce0751fb9a41aa2cfdcbe
authorJim Meyering <meyering@redhat.com>
Mon, 22 Oct 2007 17:54:52 +0000 (22 19:54 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 28 Oct 2007 14:29:01 +0000 (28 15:29 +0100)
tree9b797f29db85e9187d4d6fcac9f4e0959f5a25c1
parent0f345668724e79af9c89555a480c83ce7d7ed953
Make inter-release --version output more useful.

Now, each unofficial build has a version "number" like 2.61a-19-58dd,
which indicates that it is built using the 19th change set
(in _some_ repository) following the "v2.61a" tag, and that 58dd
is a prefix of the commit SHA1.
* build-aux/git-version-gen: New file.
* configure.ac: Run it to set the version.
(AM_INIT_AUTOMAKE): Don't check NEWS here.
* Makefile.am (dist-hook): Arrange so that .version appears only
in distribution tarballs, never in a checked-out repository.
* .gitignore: Add .version here, too.  Just in case.
* tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
not configure.ac, now that the version number changes automatically.

Ensure that $(VERSION) is up to date for dist-related targets.
* GNUmakefile: Arrange to rerun autoconf, if the version reported by
git-version-gen doesn't match $(VERSION), but only for dist targets.
.gitignore
ChangeLog
GNUmakefile
Makefile.am
README-hacking
build-aux/git-version-gen [new file with mode: 0755]
configure.ac
tests/Makefile.am