make release: Add "what's new" and "what is notmuch" sections to announcement

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.
This commit is contained in:
Carl Worth 2010-04-05 17:24:20 -07:00
parent 8782bd926e
commit 9ed5e095a8

View file

@ -80,7 +80,11 @@ dist: $(TAR_FILE)
.PHONY: release .PHONY: release
release: release-verify-newer release: release-verify-newer
$(MAKE) release-upload $(MAKE) release-upload
@echo "Please send a release announcement as follows:"
@echo ""
$(MAKE) release-message $(MAKE) release-message
$(MAKE) release-message > $(PACKAGE)-$(VERSION).announce
@echo "(This message is also available in $(PACKAGE)-$(VERSION).announce"
.PHONY: release-upload .PHONY: release-upload
release-upload: $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE) release-upload: $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE)
@ -93,12 +97,10 @@ release-upload: $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE)
.PHONY: release-message .PHONY: release-message
release-message: release-message:
@echo "Please send a release announcement as follows:"
@echo ""
@echo "To: notmuch@notmuchmail.org" @echo "To: notmuch@notmuchmail.org"
@echo "Subject: $(PACKAGE) release $(VERSION) now available" @echo "Subject: $(PACKAGE) release $(VERSION) now available"
@echo "" @echo ""
@echo "Where to obtain $(PACKAGE) $(VERSION)" @echo "Where to obtain notmuch $(VERSION)"
@echo "===========================" @echo "==========================="
@echo " $(RELEASE_URL)/$(TAR_FILE)" @echo " $(RELEASE_URL)/$(TAR_FILE)"
@echo "" @echo ""
@ -110,6 +112,20 @@ release-message:
@echo "" @echo ""
@echo " $(RELEASE_URL)/$(GPG_FILE)" @echo " $(RELEASE_URL)/$(GPG_FILE)"
@echo " (signed by `getent passwd "$$USER" | cut -d: -f 5 | cut -d, -f 1`)" @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 .PHONY: release-verify-version
release-verify-version: release-verify-version: