maint.mk: absolute VPATH issue
authorAkim Demaille <akim@lrde.epita.fr>
Mon, 30 Jul 2012 09:09:15 +0000 (11:09 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Mon, 30 Jul 2012 09:16:10 +0000 (11:16 +0200)
* top/maint.mk (release-prep): Help Git find .git/.
From Jim Meyering.

ChangeLog
top/maint.mk

index ddd205e..ad0c05b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 2af938e..fa0280e 100644 (file)
@@ -1387,9 +1387,8 @@ release-prep:
        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.