diff options
author | Jim Meyering <meyering@redhat.com> | 2008-06-01 14:48:07 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-06-01 14:48:07 +0200 |
commit | 01e6181965e1d60dd1ba483c18682d167a9c48a0 (patch) | |
tree | 44bdf6b60eada4d6d6475c745719a21da1e7f2cc /maint.mk | |
parent | 8a4192d3c05f0ae45aee4a8baab3ba13dd7bf9a9 (diff) | |
download | coreutils-01e6181965e1d60dd1ba483c18682d167a9c48a0.tar.xz |
add rules to commit three post-release changes automatically
* maint.mk (noteworthy): Define.
(emit-commit-log): Define.
(alpha beta major): Also update NEWS and cfg.mk automatically,
and commit all three changes at once.
Diffstat (limited to 'maint.mk')
-rw-r--r-- | maint.mk | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -765,6 +765,14 @@ emit_upload_commands: @echo ===================================== @echo ===================================== +noteworthy = * Noteworthy changes in release ?.? (????-??-??) [?] +define emit-commit-log + printf '%s\n' 'post-release administrivia' '' \ + '* NEWS: Add header line for next release.' \ + '* .prev-version: Record previous version.' \ + '* cfg.mk (old_NEWS_hash): Auto-update.' +endef + .PHONY: alpha beta major alpha beta major: $(local-check) writable-files test $@ = major \ @@ -780,6 +788,7 @@ alpha beta major: $(local-check) writable-files fi $(MAKE) -s emit_upload_commands RELEASE_TYPE=$@ echo $(VERSION) > $(prev_version_file) - $(VC) commit -m \ - '* $(prev_version_file): Record previous version.' \ - $(prev_version_file) + $(MAKE) update-NEWS-hash + perl -pi -e '$$. == 3 and print "$(noteworthy)\n\n\n"' NEWS + $(emit-commit-log) > .ci-msg + $(VC) commit -F .ci-msg |