Skip to content

Commit df72e6e

Browse files
committed
Meta/Announce: automate even more
1 parent aa4b930 commit df72e6e

File tree

1 file changed

+33
-11
lines changed

1 file changed

+33
-11
lines changed

Announce

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,35 @@ case "$vername" in
3232
;;
3333
esac
3434

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
3939
40-
fmt -70 <<EOF
41-
$kind Git $vername is now available$for_testing at the usual places.
4240
EOF
4341

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
4547
4648
The release tarballs are found at:
4749
4850
http://code.google.com/p/git-core/downloads/list
4951
5052
and their SHA-1 checksums are:
5153
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
5555

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
5764
tag and the $branch branch that the tag points at:
5865
5966
url = git://repo.or.cz/alt-git.git
@@ -62,6 +69,21 @@ tag and the $branch branch that the tag points at:
6269
url = git://git-core.git.sourceforge.net/gitroot/git-core/git-core
6370
url = https://github.com/gitster/git
6471
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+
6587
----------------------------------------------------------------
6688
6789
Changes since $previous are as follows:

0 commit comments

Comments
 (0)