diff options
author | Glenn Morris <rgm@gnu.org> | 2015-05-08 20:45:22 -0400 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2015-05-08 20:45:22 -0400 |
commit | 907606c84fc35387a84a2de2ee37f9bb25bce567 (patch) | |
tree | 964924a9e208ff827fb95978aa3b5087ba54e0d6 /Makefile.in | |
parent | 36c6d20bea2f8af4de126d0d503e3904ee7ab484 (diff) | |
download | emacs-907606c84fc35387a84a2de2ee37f9bb25bce567.tar.gz |
Add command-line option-parsing to gitlog-to-emacslog.
* build-aux/gitlog-to-emacslog: Add command-line options.
By default, refuse to remove an existing output file.
* Makefile.in (CHANGELOG): Update default.
(ChangeLog): Do not test for existing file.
(change-history-nocommit): Ensure temp file does not exist.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in index e8780c22d4a..7ae81b0b217 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1091,17 +1091,15 @@ bootstrap: bootstrap-clean .PHONY: ChangeLog change-history change-history-commit change-history-nocommit .PHONY: master-branch-is-current unchanged-history-files -CHANGELOG = +CHANGELOG = ChangeLog emacslog = $(srcdir)/build-aux/gitlog-to-emacslog # Convert git commit log to ChangeLog file. make-dist uses this. # I guess this is PHONY because it generates in distprefix (which is # non-nil when called from make-dist)? -# FIXME: test -f does not respect distprefix. ChangeLog: - @[ -n "${CHANGELOG}" ] || test ! -f ChangeLog $(AM_V_GEN)distprefix=$(distprefix) srcprefix=$(srcdir)/ \ - $(emacslog) . $(CHANGELOG) + $(emacslog) -o $(CHANGELOG) # The ChangeLog history files are called ChangeLog.1, ChangeLog.2, ..., # ChangeLog.$(CHANGELOG_HISTORY_INDEX_MAX). $(CHANGELOG_N) stands for @@ -1119,6 +1117,7 @@ unchanged-history-files: # Copy newer commit messages to the start of the ChangeLog history file, # and consider them to be older. change-history-nocommit: master-branch-is-current unchanged-history-files + -rm -f ChangeLog.tmp $(MAKE) ChangeLog CHANGELOG=ChangeLog.tmp (sed '/^;; [L]ocal Variables:/,$$d' <ChangeLog.tmp && cat $(CHANGELOG_N)) \ >$(CHANGELOG_N).tmp |