]> git.notmuchmail.org Git - notmuch/commitdiff
make release: Add "what's new" and "what is notmuch" sections to announcement
authorCarl Worth <cworth@cworth.org>
Tue, 6 Apr 2010 00:24:20 +0000 (17:24 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 6 Apr 2010 00:24:20 +0000 (17:24 -0700)
For other projects I release, there's a bunch of manual effort in
cosntructing the final release-announcement email. That's silly.
So automate this by extracting the appropirate text from NEWS and
by including a canned piece of the content from README.

Makefile.local

index bda9ede1ce269005bfcabe6302d8d57f8a9a2019..74f0f866ec442aa0bb3232dbdaf8cc8136a08645 100644 (file)
@@ -80,7 +80,11 @@ dist: $(TAR_FILE)
 .PHONY: release
 release: release-verify-newer
        $(MAKE) release-upload
+       @echo "Please send a release announcement as follows:"
+       @echo ""
        $(MAKE) release-message
+       $(MAKE) release-message > $(PACKAGE)-$(VERSION).announce
+       @echo "(This message is also available in $(PACKAGE)-$(VERSION).announce"
 
 .PHONY: release-upload
 release-upload: $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE)
@@ -93,12 +97,10 @@ release-upload: $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE)
 
 .PHONY: release-message
 release-message:
-       @echo "Please send a release announcement as follows:"
-       @echo ""
        @echo "To: notmuch@notmuchmail.org"
        @echo "Subject: $(PACKAGE) release $(VERSION) now available"
        @echo ""
-       @echo "Where to obtain $(PACKAGE) $(VERSION)"
+       @echo "Where to obtain notmuch $(VERSION)"
        @echo "==========================="
        @echo "  $(RELEASE_URL)/$(TAR_FILE)"
        @echo ""
@@ -110,6 +112,20 @@ release-message:
        @echo ""
        @echo "  $(RELEASE_URL)/$(GPG_FILE)"
        @echo "  (signed by `getent passwd "$$USER" | cut -d: -f 5 | cut -d, -f 1`)"
+       @echo ""
+       @echo "What's new in notmuch $(VERSION)"
+       @echo "========================="
+       @sed -ne '/^[Nn]otmuch 0.1/{n;n;b NEWS}; d; :NEWS /^===/q; {p;n;b NEWS}' < NEWS | head -n -2
+       @echo ""
+       @echo "What is notmuch"
+       @echo "==============="
+       @echo "Notmuch is a system for indexing, searching, reading, and tagging"
+       @echo "large collections of email messages in maildir or mh format. It uses"
+       @echo "the Xapian library to provide fast, full-text search with a convenient"
+       @echo "search syntax."
+       @echo ""
+       @echo "For more about notmuch, see http://notmuchmail.org"
+
 
 .PHONY: release-verify-version
 release-verify-version: