]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
add rules to commit three post-release changes automatically
authorJim Meyering <meyering@redhat.com>
Sun, 1 Jun 2008 12:48:07 +0000 (14:48 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 1 Jun 2008 12:48:07 +0000 (14:48 +0200)
* 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.

maint.mk

index 80c1bbf1fd579aeaa56d77b99d8004b55951c380..91e26a49596e6424240cf441454977e8bdead763 100644 (file)
--- a/maint.mk
+++ b/maint.mk
@@ -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