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