Use git describe to populate autoconf's VERSION.
authorEtienne Dechamps <etienne@edechamps.fr>
Sun, 29 Jun 2014 17:26:55 +0000 (18:26 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 9 May 2015 11:14:31 +0000 (12:14 +0100)
commitb109e8b16488f9bbfdc4aefe0e9b00c4f202e905
treefb3743dcf7e786c7dbdd7a1b863089ea9edb4a17
parent1c77069064e0cf0e0ddd81bab1b1354a8952fb33
Use git describe to populate autoconf's VERSION.

This uses the output of "git describe" directly in configure.ac to
determine the version number to use, instead of hardcoding it.

With this change, current version information is completely removed
from the codebase itself, and is always fetched on-the-fly from git as
the single source of truth.

In order to ensure make dist always uses the current version number in
the contents of the packaged configure script as well as the package
name, a dependency is added to the dist target such that autoconf is
always run before dist to regenerate the version number. If this wasn't
the case, make dist would use the version number from when autoconf was
originally run, not the version number that make dist is running from.
That said, errors from that rule are ignored so that people can still
run make dist without a working autoconf.

In addition, the NEWS check is dropped, as it would then become annoying
because it would force make dist users to always have a line for the
current commit in the NEWS file.
Makefile.am
configure.ac