aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2016-01-30 15:18:00 -0800
committerPaul Eggert2016-01-30 15:26:09 -0800
commit370a26021882832e8fc5b836617ba3cc435a2093 (patch)
tree47bfe1d487bc95c1d38577cb7d90f625df7103dc
parentffbf163ab5ced1bc464a0034e6abc9a41f5e09c4 (diff)
downloademacs-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.in9
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
1097CHANGELOG = ChangeLog 1097CHANGELOG = ChangeLog
1098emacslog = build-aux/gitlog-to-emacslog 1098emacslog = 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.
1112emacs-25-branch-is-current: 1112PREFERRED_BRANCH = master
1113 git branch | grep -q '^\* emacs-25$$' 1113preferred-branch-is-current:
1114 git branch | grep -q '^\* $(PREFERRED_BRANCH)$$'
1114unchanged-history-files: 1115unchanged-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.
1123change-history-nocommit: emacs-25-branch-is-current unchanged-history-files 1124change-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' \