diff options
| author | Paul Eggert | 2016-01-30 15:18:00 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-01-30 15:26:09 -0800 |
| commit | 370a26021882832e8fc5b836617ba3cc435a2093 (patch) | |
| tree | 47bfe1d487bc95c1d38577cb7d90f625df7103dc | |
| parent | ffbf163ab5ced1bc464a0034e6abc9a41f5e09c4 (diff) | |
| download | emacs-370a26021882832e8fc5b836617ba3cc435a2093.tar.gz emacs-370a26021882832e8fc5b836617ba3cc435a2093.zip | |
Make it easy to override preferred-branch test
* Makefile.in (preferred-branch-is-current):
Rename from emacs-25-branch-is-current. All uses changed.
(PREFERRED_BRANCH): New macro.
| -rw-r--r-- | Makefile.in | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in index 7b8328c2195..31a073b6749 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -1092,7 +1092,7 @@ bootstrap: bootstrap-clean | |||
| 1092 | $(MAKE) all | 1092 | $(MAKE) all |
| 1093 | 1093 | ||
| 1094 | .PHONY: ChangeLog change-history change-history-commit change-history-nocommit | 1094 | .PHONY: ChangeLog change-history change-history-commit change-history-nocommit |
| 1095 | .PHONY: emacs-25-branch-is-current unchanged-history-files | 1095 | .PHONY: preferred-branch-is-current unchanged-history-files |
| 1096 | 1096 | ||
| 1097 | CHANGELOG = ChangeLog | 1097 | CHANGELOG = ChangeLog |
| 1098 | emacslog = build-aux/gitlog-to-emacslog | 1098 | emacslog = build-aux/gitlog-to-emacslog |
| @@ -1109,8 +1109,9 @@ ChangeLog: | |||
| 1109 | ./$(emacslog) -o $(CHANGELOG) -n $(CHANGELOG_HISTORY_INDEX_MAX) | 1109 | ./$(emacslog) -o $(CHANGELOG) -n $(CHANGELOG_HISTORY_INDEX_MAX) |
| 1110 | 1110 | ||
| 1111 | # Check that we are in a good state for changing history. | 1111 | # Check that we are in a good state for changing history. |
| 1112 | emacs-25-branch-is-current: | 1112 | PREFERRED_BRANCH = master |
| 1113 | git branch | grep -q '^\* emacs-25$$' | 1113 | preferred-branch-is-current: |
| 1114 | git branch | grep -q '^\* $(PREFERRED_BRANCH)$$' | ||
| 1114 | unchanged-history-files: | 1115 | unchanged-history-files: |
| 1115 | x=$$(git diff-files --name-only $(CHANGELOG_N) $(emacslog)) && \ | 1116 | x=$$(git diff-files --name-only $(CHANGELOG_N) $(emacslog)) && \ |
| 1116 | test -z "$$x" | 1117 | test -z "$$x" |
| @@ -1120,7 +1121,7 @@ new_commit_regexp = ^commit [0123456789abcdef]* (inclusive) | |||
| 1120 | 1121 | ||
| 1121 | # Copy newer commit messages to the start of the ChangeLog history file, | 1122 | # Copy newer commit messages to the start of the ChangeLog history file, |
| 1122 | # and consider them to be older. | 1123 | # and consider them to be older. |
| 1123 | change-history-nocommit: emacs-25-branch-is-current unchanged-history-files | 1124 | change-history-nocommit: preferred-branch-is-current unchanged-history-files |
| 1124 | -rm -f ChangeLog.tmp | 1125 | -rm -f ChangeLog.tmp |
| 1125 | $(MAKE) ChangeLog CHANGELOG=ChangeLog.tmp | 1126 | $(MAKE) ChangeLog CHANGELOG=ChangeLog.tmp |
| 1126 | sed '/^This file records repository revisions/,$$d' \ | 1127 | sed '/^This file records repository revisions/,$$d' \ |