changeset 17012:166502842193

maint.mk: absolute VPATH issue * top/maint.mk (release-prep): Help Git find .git/. From Jim Meyering.
author Akim Demaille <akim@lrde.epita.fr>
date Mon, 30 Jul 2012 11:09:15 +0200
parents bd249772f779
children 12eb56636194
files ChangeLog top/maint.mk
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jul 29 17:15:18 2012 -0700
+++ b/ChangeLog	Mon Jul 30 11:09:15 2012 +0200
@@ -1,3 +1,9 @@
+2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
+
+	maint.mk: absolute VPATH issue
+	* top/maint.mk (release-prep): Help Git find .git/.
+	From Jim Meyering.
+
 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
 
 	gitlog-to-changelog: fix previous change
--- a/top/maint.mk	Sun Jul 29 17:15:18 2012 -0700
+++ b/top/maint.mk	Mon Jul 30 11:09:15 2012 +0200
@@ -1387,9 +1387,8 @@
 	echo $(VERSION) > $(prev_version_file)
 	$(MAKE) update-NEWS-hash
 	perl -pi -e '$$. == 3 and print "$(gl_noteworthy_news_)\n\n\n"' $(srcdir)/NEWS
-	$(emit-commit-log) > .ci-msg
-	$(VC) commit -F .ci-msg -a
-	rm .ci-msg
+	msg=$$($(emit-commit-log)) || exit 1;		\
+	(cd $(srcdir) && $(VC) commit -m "$$msg" -a)
 
 # Override this with e.g., -s $(srcdir)/some_other_name.texi
 # if the default $(PACKAGE)-derived name doesn't apply.