changeset 15492:b54bff314db1

git-version-gen: document that EXTRA_DIST must include .version * build-aux/git-version-gen: In the how-to-use comment, document that EXTRA_DIST must include .version. Otherwise, "make distcheck" will fail when run from an unpacked distribution tarball.
author Iain Nicol <iain@iainnicol.com>
date Sun, 31 Jul 2011 13:30:59 +0100
parents 51661422d6f2
children 1634a5da2f6e
files ChangeLog build-aux/git-version-gen
diffstat 2 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-31  Iain Nicol  <iain@thenicols.net>
+
+	git-version-gen: document that EXTRA_DIST must include .version
+	* build-aux/git-version-gen: In the how-to-use comment, document
+	that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
+	will fail when run from an unpacked distribution tarball.
+
 2011-08-01  Bruno Haible  <bruno@clisp.org>
 
 	wctype-h: Fix last change.
--- a/build-aux/git-version-gen
+++ b/build-aux/git-version-gen
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Print a version string.
-scriptversion=2011-02-19.19; # UTC
+scriptversion=2011-07-31.12; # UTC
 
 # Copyright (C) 2007-2011 Free Software Foundation, Inc.
 #
@@ -57,9 +57,10 @@
 #         [bug-project@example])
 #
 # Then use the following lines in your Makefile.am, so that .version
-# will be present for dependencies, and so that .tarball-version will
-# exist in distribution tarballs.
+# will be present for dependencies, and so that .version and
+# .tarball-version will exist in distribution tarballs.
 #
+# EXTRA_DIST = $(top_srcdir)/.version
 # BUILT_SOURCES = $(top_srcdir)/.version
 # $(top_srcdir)/.version:
 #	echo $(VERSION) > $@-t && mv $@-t $@