• 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

修訂f57c62a242edf8d5b111c1a9e647dfec70ce3fdc (tree)
時間2022-02-24 06:26:22
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Generate ChangeLog to include in source distribution.

* Makefile.in (PACKAGE_DISTNAME, PACKAGE_TMPDIR): Force remake...
(FORCE): ...requiring this new phoney build prerequisite; define it.
(srcdist-package-content): New phoney build prerequisite; define it.
(srcdist): Require it; this creates prerequisite dependencies on...
(srcdist-package-scripts, srcdist-package-files): ...these original
prerequisites, which are now augmented by...
(srcdist-package-changelog): ...this new prerequisite; implement...
(scm_cmd): ...in terms of this command macro; define it, assuming that
source code management will use "git", with "git log" supported by...
(git_changelog_template): ...this ChangeLog generator template.

Change Summary

差異

--- a/Makefile.in
+++ b/Makefile.in
@@ -306,14 +306,28 @@ dist: srcdist bindist
306306 PACKAGE_DISTNAME := $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
307307 PACKAGE_TMPDIR := `pwd`/tmp
308308
309-$(PACKAGE_DISTNAME) $(PACKAGE_TMPDIR):
309+.FORCE:
310+.PHONY: .FORCE
311+$(PACKAGE_DISTNAME) $(PACKAGE_TMPDIR): .FORCE
310312 rm -rf $@; $(MKDIR_P) $@
311313
312-srcdist: $(PACKAGE_DISTNAME) srcdist-package-scripts srcdist-package-files
314+srcdist: $(PACKAGE_DISTNAME) srcdist-package-content
313315 cd $(PACKAGE_DISTNAME); $(LN_S) ${abs_top_srcdir}/man .
314316 tar chf - $(PACKAGE_DISTNAME) | xz -c > $(PACKAGE_DISTNAME)-src.tar.xz
315317 rm -rf $(PACKAGE_DISTNAME)
316318
319+.PHONY: srcdist-package-content
320+$(addprefix srcdist-package-,content: changelog scripts files)
321+
322+.PHONY: srcdist-package-changelog
323+srcdist-package-changelog: $(PACKAGE_DISTNAME)
324+ $(scm_cmd) log $(changelog_template) > $(PACKAGE_DISTNAME)/ChangeLog
325+
326+scm_cmd := git
327+git_changelog_template := --format='%%%%%%%as %an <%ae>%n%n%-s%n%+b'
328+git_changelog_template += | sed -e 's/^./\t&/' -e s'/^\t%%%//'
329+changelog_template := $($(scm_cmd)_changelog_template)
330+
317331 vpath install-sh ${srcdir}
318332 .PHONY: srcdist-package-scripts
319333 srcdist-package-scripts: configure install-sh