maint.mk: fix "release" target to build _version
authorJim Meyering <meyering@fb.com>
Sun, 27 Oct 2013 02:26:13 +0000 (19:26 -0700)
committerJim Meyering <meyering@fb.com>
Sun, 27 Oct 2013 02:26:35 +0000 (19:26 -0700)
This fixes a bug in README-release whereby following the outlined
steps, one would publish a tarball whose programs would report
--version output not consistent with the package version number.
This bug caused grep-2.15 to produce a grep program whose
--version option made it print 2.14.56-1e3d rather than 2.15.
* top/maint.mk (release): Making this target build "_version"
ensures that the new version number is reflected in configure.

ChangeLog
top/maint.mk

index 8992e91..ba3d83a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2013-10-26  Jim Meyering  <meyering@fb.com>
+
+       maint.mk: fix "release" target to build _version
+       This fixes a bug in README-release whereby following the outlined
+       steps, one would publish a tarball whose programs would report
+       --version output not consistent with the package version number.
+       This bug caused grep-2.15 to produce a grep program whose
+       --version option made it print 2.14.56-1e3d rather than 2.15.
+       * top/maint.mk (release): Making this target build "_version"
+       ensures that the new version number is reflected in configure.
+
 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
 
        install-reloc: Support multi-binary installation.
index c9f8cc8..bf8f53a 100644 (file)
@@ -1424,6 +1424,7 @@ alpha beta stable: $(local-check) writable-files $(submodule-checks)
        $(AM_V_at)$(MAKE) -s emit_upload_commands RELEASE_TYPE=$@
 
 release:
+       $(AM_V_GEN)$(MAKE) _version
        $(AM_V_GEN)$(MAKE) $(release-type)
 
 # Override this in cfg.mk if you follow different procedures.