Minor copyediting of MaintNotes
[git] / Announce
1 #!/bin/sh
2 # Announcement message skelton
3 #
4 branch=${1?branch}
5 previous=${2?previous}
6 commit=${3-"$1"}
7
8 relname=$(git describe "$commit") &&
9 vername=$(expr "$relname" : 'v\(.*\)') || exit $?
10
11 git rev-parse --verify "$previous" >/dev/null || exit $?
12
13 case "$branch" in
14 maint)
15         kind="maintenance" ;;
16 mainto/*)
17         kind="obsolete maintenance" ;;
18 master)
19         kind="feature" ;;
20 esac
21
22 echo "To: git@vger.kernel.org
23 cc: linux-kernel@vger.kernel.org
24 Subject: [ANNOUNCE] GIT $vername
25 "
26
27 fmt -70 <<EOF
28 The latest $kind release GIT $vername is available at the usual places:
29
30   http://www.kernel.org/pub/software/scm/git/
31
32   git-$vername.tar.{gz,bz2}                     (tarball)
33   git-htmldocs-$vername.tar.{gz,bz2}            (preformatted docs)
34   git-manpages-$vername.tar.{gz,bz2}            (preformatted docs)
35   RPMS/\$arch/git-*-$vername-1.\$arch.rpm       (RPM)
36
37 BLURB HERE BLURB HERE BLURB HERE
38
39 ----------------------------------------------------------------
40
41 Changes since $previous are as follows:
42
43 EOF
44
45 git log --no-merges "$previous".."$branch" |
46 git shortlog
47