blob: e1cbe5ade7f74cad08e5fd29621dcbc49b1803ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
#!/bin/sh --
#
# Build a mutt release.
#
# This used to be part of the main Makefile, but is better handled
# by a shell script.
#
# Note that this script won't work for you. I'm including it with
# the distribution for the sake of completeness.
#
# Thomas Roessler <roessler@guug.de> Mon, 8 Nov 1999 22:32:41 +0100
#
set -e
if test "$1" = "-nodiff" ; then
diff=no
else
diff=yes
fi
devel="devel/" # comment out for the stable branch
# update the source
cvs update
# Do automated security checks
./check_sec.sh || exit 1
# bump the version number, and calculate the tags
rm -f VERSION
cvs update VERSION
OVERSION="`cat VERSION`"
OTAG="mutt-`echo $OVERSION | tr . -`-rel"
echo $OVERSION | awk -F . '{printf("%d.%d.%d\n", $1, $2, $3 + 1);}' > VERSION
${VISUAL} VERSION
VERSION="`cat VERSION`"
TAG="mutt-`echo $VERSION | tr . -`-rel"
echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > reldate.h
make changelog
# now, prepare the distribution tar balls
(cd m4 && rm -f Makefile Makefile.in Makefile.am && make -f Makefile.am.in)
automake
touch configure.in
make config.status
./config.status
make update-doc
make changelog
# build them
# make us-dist
make dist
mv mutt-${VERSION}.tar.gz mutt-${VERSION}i.tar.gz
# mv mutt-${VERSION}-us.tar.gz mutt-${VERSION}.tar.gz
# commit and tag the release
cvs commit -m "automatic post-release commit for mutt-${VERSION}"
make commit-changelog
cvs tag ${TAG}
# build the diff between the two releases
if test "$diff" = yes ; then
cvs rdiff -u -r ${OTAG} -r ${TAG} mutt | gzip -9 \
> diff-${OVERSION}i-${VERSION}i.gz
fi
# sign the various files
# DISTFILES="mutt-${VERSION}.tar.gz mutt-${VERSION}i.tar.gz diff-${OVERSION}i-${VERSION}i.gz"
DISTFILES="mutt-${VERSION}i.tar.gz"
if test "$diff" = yes ; then
DISTFILES="$DISTFILES diff-${OVERSION}i-${VERSION}i.gz"
fi
for f in $DISTFILES; do
pgp -sb $f
chmod 644 $f.asc
done
echo "Release built. Please connect to the net and press <enter>"
echo "when on-line."
read dummy
for f in $DISTFILES ; do
# scp1 $f $f.asc sigtrap.guug.de:/home/ftp/pub/mutt/${devel}
scp $f $f.asc trithemius.gnupg.org:/home/ftp/mutt/${devel}
done
$HOME/bin/upload-cvs
cvs update
# Finally, announce the new mutt to the public
# mutt -s "[Announce] mutt-${VERSION} is out" mutt-dev@mutt.org
|