Changeset 5157:5af6b6ef8c96
- Timestamp:
- 2007-05-26 17:52:06 (20 months ago)
- Author:
- Brendan Cully <brendan@…>
- Branch:
- mutt-1-4-stable
- Message:
-
stable build-release updates
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2883
|
r5157
|
|
| 17 | 17 | # devel="devel/" # comment out for the stable branch |
| 18 | 18 | |
| | 19 | # test for uncommitted changes |
| | 20 | if hg id | grep -q '+' |
| | 21 | then |
| | 22 | echo "Uncommitted changes" |
| | 23 | exit 1 |
| | 24 | fi |
| | 25 | |
| 19 | 26 | # update the source |
| 20 | 27 | |
| 21 | | cvs update |
| | 28 | hg update |
| 22 | 29 | |
| 23 | 30 | # Do automated security checks |
| … |
… |
|
| 27 | 34 | # bump the version number, and calculate the tags |
| 28 | 35 | |
| 29 | | rm -f VERSION |
| 30 | | cvs update VERSION |
| | 36 | hg revert VERSION |
| 31 | 37 | OVERSION="`cat VERSION`" |
| 32 | 38 | OTAG="mutt-`echo $OVERSION | tr . -`-rel" |
| … |
… |
|
| 40 | 46 | echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > reldate.h |
| 41 | 47 | |
| 42 | | rcs2log | cat - ChangeLog > ChangeLog.$$ && mv ChangeLog.$$ ChangeLog |
| | 48 | #rcs2log | cat - ChangeLog > ChangeLog.$$ && mv ChangeLog.$$ ChangeLog |
| 43 | 49 | ${VISUAL} ChangeLog |
| 44 | 50 | |
| … |
… |
|
| 55 | 61 | # build them |
| 56 | 62 | |
| 57 | | # make us-dist |
| 58 | 63 | make dist |
| 59 | | mv mutt-${VERSION}.tar.gz mutt-${VERSION}i.tar.gz |
| 60 | | # mv mutt-${VERSION}-us.tar.gz mutt-${VERSION}.tar.gz |
| 61 | 64 | |
| 62 | 65 | # commit and tag the release |
| 63 | 66 | |
| 64 | | cvs commit -m "automatic post-release commit for mutt-${VERSION}" |
| 65 | | cvs tag ${TAG} |
| | 67 | hg commit -m "automatic post-release commit for mutt-${VERSION}" |
| | 68 | hg tag ${TAG} |
| | 69 | hg sign ${TAG} |
| 66 | 70 | |
| 67 | 71 | # build the diff between the two releases |
| 68 | 72 | |
| 69 | | cvs rdiff -u -r ${OTAG} -r ${TAG} mutt | gzip -9 \ |
| 70 | | > diff-${OVERSION}i-${VERSION}i.gz |
| | 73 | hg diff -r ${OTAG} -r ${TAG} mutt | gzip -9 \ |
| | 74 | > diff-${OVERSION}i-${VERSION}.gz |
| 71 | 75 | |
| 72 | 76 | # sign the various files |
| 73 | 77 | |
| 74 | | # DISTFILES="mutt-${VERSION}.tar.gz mutt-${VERSION}i.tar.gz diff-${OVERSION}i-${VERSION}i.gz" |
| 75 | | DISTFILES="mutt-${VERSION}i.tar.gz diff-${OVERSION}i-${VERSION}i.gz" |
| | 78 | DISTFILES="mutt-${VERSION}.tar.gz diff-${OVERSION}i-${VERSION}.gz" |
| 76 | 79 | |
| 77 | 80 | for f in $DISTFILES; do |
| 78 | | pgp -sb $f |
| | 81 | gpg -ba $f |
| 79 | 82 | chmod 644 $f.asc |
| 80 | 83 | done |
| 81 | 84 | |
| 82 | | echo "Release built. Please connect to the net and press <enter>" |
| 83 | | echo "when on-line." |
| 84 | | |
| 85 | | read dummy |
| 86 | | |
| 87 | 85 | for f in $DISTFILES ; do |
| 88 | 86 | # scp1 $f $f.asc sigtrap.guug.de:/home/ftp/pub/mutt/${devel} |
| 89 | | scp $f $f.asc trithemius.gnupg.org:/home/ftp/pub/mutt/${devel} |
| | 87 | scp $f $f.asc cvs.gnupg.org:/home/ftp/pub/mutt/${devel} |
| 90 | 88 | done |
| 91 | | |
| 92 | | $HOME/bin/upload-cvs |
| 93 | | cvs update |
| 94 | 89 | |
| 95 | 90 | # Finally, announce the new mutt to the public |
| 96 | 91 | |
| 97 | | mutt -s "[Announce] mutt-${VERSION} is out" mutt-dev@mutt.org |
| | 92 | #mutt -s "[Announce] mutt-${VERSION} is out" mutt-dev@mutt.org |
| 98 | 93 | |