aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.local
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-04-05 17:24:20 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-05 17:24:20 -0700
commit9ed5e095a81f23b286a10a4fd51c09769c8d62ee (patch)
tree5f47f84a4ed5545001980c4503470ec437ad50f5 /Makefile.local
parent8782bd926e9cc5c3ea42a7dff6bd5870023d3d54 (diff)
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.
Diffstat (limited to 'Makefile.local')
-rw-r--r--Makefile.local22
1 files changed, 19 insertions, 3 deletions
diff --git a/Makefile.local b/Makefile.local
index bda9ede1..74f0f866 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -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: