root/build-release

Revision 5171:50b11beb4265, 2.0 kB (checked in by Brendan Cully <brendan@…>, 15 months ago)

Fix quoting for hg sign in build-release

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