From 1cc207f6ebddd3609c995f17756f995cf8847c32 Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Mon, 30 Oct 2017 21:54:19 +0100 Subject: maint: make inter-release --version output more useful Now, each snapshot has a version "number" like 4.6-131-219-gda920ee, which indicates that it is built using the 131st change set (in _some_ repository) following the "v4.6" tag, and that da920ee is a prefix of the commit SHA1. * bootstrap.conf (gnulib_modules): Add git-version-gen. * build-aux/.gitigore (/git-version-gen): Add entry. * configure.ac: Run it to set the version from .tarball-version. * Makefile.am (EXTRA_DIST): Add git-version-gen. (dist-hook): Create .tarball-version in distribution tarballs, never in a checked-out repository. (AUTOMAKE_OPTIONS): Change from 'gnits' to 'gnu std-options readme-alpha'. * .gitignore (.tarball-version): Add entry. * doc/find-maint.texi (Making Releases): Adjust: tag before the build, changed handling in NEWS, etc. * NEWS (Changes to the build process): Document the change. --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9ecf0b0c..ebcc5da3 100644 --- a/configure.ac +++ b/configure.ac @@ -19,7 +19,12 @@ dnl Written by James Youngman. dnl Process this file with autoconf to produce a configure script. -AC_INIT([GNU findutils], 4.7.0-git, [bug-findutils@gnu.org]) +# Make inter-release version strings look like, e.g., v4.6-131-gda920ee, which +# indicates that it is built from the 131st delta (in _some_ repository) +# following the v4.6 tag, and that da920ee is a prefix of the commit SHA1. +AC_INIT([GNU findutils], + m4_esyscmd([build-aux/git-version-gen .tarball-version]), + [bug-findutils@gnu.org]) dnl Set the bug-report URL dnl -- cgit v1.2.1