You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.6 KiB
73 lines
1.6 KiB
#!/bin/sh |
|
# Announcement message skelton |
|
# |
|
branch=${1?branch} |
|
previous=${2?previous} |
|
commit=${3-"$1"} |
|
|
|
relname=$(git describe "$commit") && |
|
vername=$(expr "$relname" : 'v\(.*\)') || exit $? |
|
|
|
git rev-parse --verify "$previous" >/dev/null || exit $? |
|
|
|
case "$branch" in |
|
maint) |
|
kind="The latest maintenance release" ;; |
|
mainto/* | maint-[0-9]*) |
|
kind="An maintenance release" ;; |
|
master) |
|
kind="The latest feature release" ;; |
|
esac |
|
|
|
case "$vername" in |
|
*-rc[0-9]*) |
|
rpmroot=testing |
|
vername=$(echo "$vername" | tr "-" ".") |
|
kind="A release candidate" |
|
for_testing=" for testing" |
|
;; |
|
*) |
|
for_testing= |
|
rpmroot='RPMS/$arch' |
|
;; |
|
esac |
|
|
|
echo "To: git@vger.kernel.org" |
|
Meta/ProjectContact -b |
|
echo "Subject: [ANNOUNCE] Git $vername |
|
" |
|
|
|
fmt -70 <<EOF |
|
$kind Git $vername is available$for_testing. |
|
EOF |
|
|
|
cat <<EOF |
|
|
|
The release tarballs are found at: |
|
|
|
http://code.google.com/p/git-core/downloads/list |
|
|
|
and their SHA-1 checksums are: |
|
|
|
bbf85bd767ca6b7e9caa1489bb4ba7ec64e0ab35 git-1.7.7.tar.gz |
|
33183db94fd25e001bd8a9fd6696b992f61e28d8 git-htmldocs-1.7.7.tar.gz |
|
75d3cceb46f7a46eeb825033dff76af5eb5ea3d9 git-manpages-1.7.7.tar.gz |
|
|
|
Also the following public repositories all have a copy of the v$vername |
|
tag and the $branch branch that the tag points at: |
|
|
|
url = git://repo.or.cz/alt-git.git |
|
url = https://code.google.com/p/git-core/ |
|
url = git://git.sourceforge.jp/gitroot/git-core/git.git |
|
url = git://git-core.git.sourceforge.net/gitroot/git-core/git-core |
|
url = https://github.com/gitster/git |
|
|
|
---------------------------------------------------------------- |
|
|
|
Changes since $previous are as follows: |
|
|
|
EOF |
|
|
|
git log --no-merges "$previous".."$branch" | |
|
git shortlog |
|
|
|
|