Le 30 juil. 2012 à 09:08, Jim Meyering a écrit : > Saving the commit message in a variable should do what we want: > > msg=$$(emit-commit-log) || exit 1; \ > (cd $(srcdir) && $(VC) commit -m "$$msg" -a)
Perfect! Installed as follows. commit ed4e07a077c43052ebb60ea813698f289ba2f367 Author: Akim Demaille <a...@lrde.epita.fr> Date: Mon Jul 30 11:09:15 2012 +0200 maint.mk: absolute VPATH issue * top/maint.mk (release-prep): Help Git find .git/. From Jim Meyering. diff --git a/ChangeLog b/ChangeLog index ddd205e..ad0c05b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-07-30 Akim Demaille <a...@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 <a...@lrde.epita.fr> gitlog-to-changelog: fix previous change diff --git a/top/maint.mk b/top/maint.mk index 2af938e..fa0280e 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -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.