4
# Build a mutt release.
6
# This used to be part of the main Makefile, but is better handled
9
# Note that this script won't work for you. I'm including it with
10
# the distribution for the sake of completeness.
12
# Thomas Roessler <roessler@does-not-exist.org> Mon, 8 Nov 1999 22:32:41 +0100
17
if test "$1" = "-nodiff" ; then
24
devel="devel/" # comment out for the stable branch
26
# test for uncommitted changes
27
if hg id | grep -q '+'
29
echo "Uncommitted changes"
37
# Do automated security checks
39
./check_sec.sh || exit 1
41
# bump the version number, and calculate the tags
43
OVERSION="`cat VERSION`"
44
OTAG="mutt-`echo $OVERSION | tr . -`-rel"
46
echo $OVERSION | awk -F . '{printf("%d.%d.%d\n", $1, $2, $3 + 1);}' > VERSION
49
VERSION="`cat VERSION`"
50
TAG="mutt-`echo $VERSION | tr . -`-rel"
52
#echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > reldate.h
56
# now, prepare the distribution tar balls
64
(cd po && make update-po)
70
# commit and tag the release
72
hg commit -m "automatic post-release commit for mutt-${VERSION}"
73
#make commit-changelog
76
# build the diff between the two releases
80
hg diff -r ${OTAG} -r ${TAG} | gzip -9 \
81
> diff-${OVERSION}-${VERSION}.gz
84
# sign the various files
86
# DISTFILES="mutt-${VERSION}.tar.gz mutt-${VERSION}i.tar.gz diff-${OVERSION}i-${VERSION}i.gz"
87
DISTFILES="mutt-${VERSION}.tar.gz"
89
if test "$diff" = yes ; then
90
DISTFILES="$DISTFILES diff-${OVERSION}-${VERSION}.gz"
93
for f in $DISTFILES; do
98
for f in $DISTFILES ; do
99
scp $f $f.asc trithemius.gnupg.org:/home/ftp/mutt/${devel}
102
hg sign -m"mutt-${VERSION} signed"
104
# Finally, announce the new mutt to the public
106
# mutt -s "[Announce] mutt-${VERSION} is out" mutt-dev@mutt.org