aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.local
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-04-05 16:37:44 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-05 16:38:56 -0700
commit8782bd926e9cc5c3ea42a7dff6bd5870023d3d54 (patch)
treebe4d2daf7efd8691335694711f3bcba37a38e7f0 /Makefile.local
parent1b0830b31c5012ccdc7da9731aa314a201a443d9 (diff)
Makefile: Print template for release announcement.
At the end of "make release" or at any point later with "make release-message".
Diffstat (limited to 'Makefile.local')
-rw-r--r--Makefile.local30
1 files changed, 29 insertions, 1 deletions
diff --git a/Makefile.local b/Makefile.local
index d78f6132..bda9ede1 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -15,6 +15,7 @@ VERSION=0.1.1
RELEASE_HOST=notmuchmail.org
RELEASE_DIR=/srv/notmuchmail.org/www/releases
+RELEASE_URL=http://notmuchmail.org/releases
TAR_FILE=$(PACKAGE)-$(VERSION).tar.gz
SHA1_FILE=$(TAR_FILE).sha1
GPG_FILE=$(SHA1_FILE).asc
@@ -74,8 +75,15 @@ $(GPG_FILE): $(SHA1_FILE)
.PHONY: dist
dist: $(TAR_FILE)
+# We invoke make recursively only to force ordering of our phony
+# targets in the case of parallel invocation of make (-j).
.PHONY: release
-release: release-verify-newer $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE)
+release: release-verify-newer
+ $(MAKE) release-upload
+ $(MAKE) release-message
+
+.PHONY: release-upload
+release-upload: $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE)
mkdir -p releases
scp $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE) $(RELEASE_HOST):$(RELEASE_DIR)
mv $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE) releases
@@ -83,6 +91,26 @@ release: release-verify-newer $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE)
git tag -s -m "$(PACKAGE) $(VERSION) release" $(VERSION)
git push origin $(VERSION)
+.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 "==========================="
+ @echo " $(RELEASE_URL)/$(TAR_FILE)"
+ @echo ""
+ @echo "Which can be verified with:"
+ @echo ""
+ @echo " $(RELEASE_URL)/$(SHA1_FILE)"
+ @echo -n " "
+ @cat releases/$(SHA1_FILE)
+ @echo ""
+ @echo " $(RELEASE_URL)/$(GPG_FILE)"
+ @echo " (signed by `getent passwd "$$USER" | cut -d: -f 5 | cut -d, -f 1`)"
+
.PHONY: release-verify-version
release-verify-version:
@echo -n "Checking that $(VERSION) is a two-component version..."