Meta/Make: minimum adjustment for BSD environment
[git/spearce.git] / Announce
blob91c39bf7f613c2d3b7a38918203d71bbd0d72a7c
1 #!/bin/sh
2 # Announcement message skelton
4 branch=${1?branch}
5 previous=${2?previous}
6 commit=${3-"$1"}
8 relname=$(git describe "$commit") &&
9 vername=$(expr "$relname" : 'v\(.*\)') || exit $?
11 git rev-parse --verify "$previous" >/dev/null || exit $?
13 case "$branch" in
14 maint)
15 kind="The latest maintenance release" ;;
16 mainto/* | maint-[0-9]*)
17 kind="An maintenance release" ;;
18 master)
19 kind="The latest feature release" ;;
20 esac
22 case "$vername" in
23 *-rc[0-9]*)
24 rpmroot=testing
25 vername=$(echo "$vername" | tr "-" ".")
26 kind="A release candidate"
27 for_testing=" for testing"
30 for_testing=
31 rpmroot='RPMS/$arch'
33 esac
35 echo "To: git@vger.kernel.org"
36 Meta/ProjectContact -b
37 echo "Subject: [ANNOUNCE] GIT $vername
40 fmt -70 <<EOF
41 $kind GIT $vername is available at the usual places$for_testing:
43 http://www.kernel.org/pub/software/scm/git/
45 git-$vername.tar.{gz,bz2} (source tarball)
46 git-htmldocs-$vername.tar.{gz,bz2} (preformatted docs)
47 git-manpages-$vername.tar.{gz,bz2} (preformatted docs)
49 The RPM binary packages for a few architectures are found in:
51 $rpmroot/git-*-$vername-1.fc9.\$arch.rpm (RPM)
53 BLURB HERE BLURB HERE BLURB HERE
55 ----------------------------------------------------------------
57 Changes since $previous are as follows:
59 EOF
61 git log --no-merges "$previous".."$branch" |
62 git shortlog