• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonrubyphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

Mercurial Queues Emulation for Git


Commit MetaInfo

修訂56fe1e90d736f072a04de45240c30e9dbce00318 (tree)
時間2022-02-24 19:34:25
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Add mercurial support for ChangeLog generation.

* Makefile.in (scm_cmd) [.hg exists]: Set to use "hg".
(scm_cmd) [! .hg exists]: Fall back to use "git", as default.
(hg_changelog_template): New formatting macro; define it.

Change Summary

差異

--- a/Makefile.in
+++ b/Makefile.in
@@ -323,9 +323,15 @@ $(addprefix srcdist-package-,content: changelog scripts files)
323323 srcdist-package-changelog: $(PACKAGE_DISTNAME)
324324 $(scm_cmd) log $(changelog_template) > $(PACKAGE_DISTNAME)/ChangeLog
325325
326-scm_cmd := git
326+scm_cmd := $(if $(wildcard ${srcdir}/.hg),hg,git)
327327 git_changelog_template := --format='%%%%%%%as %an <%ae>%n%n%-s%n%+b'
328328 git_changelog_template += | sed -e 's/^./\t&/' -e s'/^\t%%%//'
329+
330+hg_changelog_template := \n\n\t{sub("\n\t*","\n",desc)|tabindent}\n\n
331+hg_changelog_template := {user|person} <{user|email}>$(hg_changelog_template)
332+hg_changelog_template := {date|shortdate} $(hg_changelog_template)
333+hg_changelog_template := --template='$(hg_changelog_template)'
334+
329335 changelog_template := $($(scm_cmd)_changelog_template)
330336
331337 vpath install-sh ${srcdir}