From: Jim Meyering <meyering@redhat.com>
Date: Thu, 31 Dec 2009 14:59:29 +0000 (+0100)
Subject: maint.mk: create announcement template in ~/, not in /tmp
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acb9c9fcc70a0f65855e9939eb1b632b3a510d8f;p=pspp

maint.mk: create announcement template in ~/, not in /tmp

* top/maint.mk (emit_upload_commands): Adjust.
(release-prep): Emit into ~/announce-..., not /tmp/announce-...
Remove temporary file, .ci-msg.
---

diff --git a/ChangeLog b/ChangeLog
index d1e62344f1..ada6051b5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-12-31  Jim Meyering  <meyering@redhat.com>
+
+	maint.mk: create announcement template in ~/, not in /tmp
+	* top/maint.mk (emit_upload_commands): Adjust.
+	(release-prep): Emit into ~/announce-..., not /tmp/announce-...
+	Remove temporary file, .ci-msg.
+
 2009-12-31  Eric Blake  <ebb9@byu.net>
 
 	link-warning: always build headers with link warnings
diff --git a/top/maint.mk b/top/maint.mk
index be061a6d44..2d25535db0 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -714,7 +714,7 @@ emit_upload_commands:
 	@echo "$(build_aux)/gnupload $(GNUPLOADFLAGS) \\"
 	@echo "    --to $(gnu_rel_host):$(PACKAGE) \\"
 	@echo "  $(rel-files)"
-	@echo '# send the /tmp/announcement e-mail'
+	@echo '# send the ~/announce-$(my_distdir) e-mail'
 	@echo =====================================
 	@echo =====================================
 
@@ -760,7 +760,7 @@ release-prep-hook ?= release-prep
 release-prep:
 	case $$RELEASE_TYPE in alpha|beta|stable) ;; \
 	  *) echo "invalid RELEASE_TYPE: $$RELEASE_TYPE" 1>&2; exit 1;; esac
-	$(MAKE) -s announcement > /tmp/announce-$(my_distdir)
+	$(MAKE) -s announcement > ~/announce-$(my_distdir)
 	if test -d $(release_archive_dir); then			\
 	  ln $(rel-files) $(release_archive_dir);		\
 	  chmod a-w $(rel-files);				\
@@ -770,6 +770,7 @@ release-prep:
 	perl -pi -e '$$. == 3 and print "$(noteworthy)\n\n\n"' NEWS
 	$(emit-commit-log) > .ci-msg
 	$(VC) commit -F .ci-msg -a
+	rm .ci-msg
 
 .PHONY: web-manual
 web-manual: