Meta/Announce: automate even more

Junio C Hamano committed Jun 3, 2012 at 17:20 UTC df72e6ec0ebc40bb9cf2fb0d5bc684a7e4e23e98
1 file changed +33 -11
Announce
+33 -11
@@ -32,16 +32,18 @@ case "$vername" in
32 ;;
33 esac
34
35 -echo "To: git@vger.kernel.org"
36 -Meta/ProjectContact -b
37 -echo "Subject: [ANNOUNCE] Git $vername
38 -"
35 +cat <<EOF
36 +To: git@vger.kernel.org
37 +Cc: Linux Kernel <linux-kernel@vger.kernel.org>
38 +Subject: [ANNOUNCE] Git $relname
39
40 -fmt -70 <<EOF
41 -$kind Git $vername is now available$for_testing at the usual places.
40 EOF
41
44 -cat <<EOF
42 +fmt -68 <<EOF
43 +$kind Git $relname is now available$for_testing at the usual places.
44 +EOF
45 +
46 +cat <<\EOF
47
48 The release tarballs are found at:
49
@@ -49,11 +51,16 @@ The release tarballs are found at:
51
52 and their SHA-1 checksums are:
53
52 -bbf85bd767ca6b7e9caa1489bb4ba7ec64e0ab35 git-1.7.7.tar.gz
53 -33183db94fd25e001bd8a9fd6696b992f61e28d8 git-htmldocs-1.7.7.tar.gz
54 -75d3cceb46f7a46eeb825033dff76af5eb5ea3d9 git-manpages-1.7.7.tar.gz
54 +EOF
55
56 -Also the following public repositories all have a copy of the v$vername
56 +if test -f git-$vername.sign
57 +then
58 + sed -e '1,/^$/d' -e '/^-----BEGIN PGP SIGNATURE/,$d' git-$vername.sign
59 +fi
60 +
61 +cat <<EOF
62 +
63 +Also the following public repositories all have a copy of the $relname
64 tag and the $branch branch that the tag points at:
65
66 url = git://repo.or.cz/alt-git.git
@@ -62,6 +69,21 @@ tag and the $branch branch that the tag points at:
69 url = git://git-core.git.sourceforge.net/gitroot/git-core/git-core
70 url = https://github.com/gitster/git
71
72 +EOF
73 +
74 +RelNotes=$(git cat-file blob "${branch}:RelNotes") &&
75 +git cat-file blob "${branch}:$RelNotes" |
76 +case "$relname" in
77 +*-rc[0-9]*)
78 + sed -e 's/^Git .* Release Notes$/& (draft)/'
79 + ;;
80 +*)
81 + cat
82 + ;;
83 +esac
84 +
85 +cat <<EOF
86 +
87 ----------------------------------------------------------------
88
89 Changes since $previous are as follows: