diff options
author | Jamie McClelland <jm@mayfirst.org> | 2008-09-06 02:59:12 -0400 |
---|---|---|
committer | Jamie McClelland <jm@mayfirst.org> | 2008-09-06 02:59:12 -0400 |
commit | 2c6c9e84ef5417987d90d45d28be6894df5afe35 (patch) | |
tree | 1d3b746631e364a9e54f66d95671307774846691 /utils/build-releasenote | |
parent | 98253f5bca3f6745ab74a2d0e39109f32e7b173c (diff) | |
parent | d4d83e34a65cbb3be4b46da590297f326e660052 (diff) |
Merge commit 'dkg/master'
Diffstat (limited to 'utils/build-releasenote')
-rwxr-xr-x | utils/build-releasenote | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/utils/build-releasenote b/utils/build-releasenote new file mode 100755 index 0000000..af7ceb3 --- /dev/null +++ b/utils/build-releasenote @@ -0,0 +1,40 @@ +#!/bin/bash + +VERSION=`head -n1 debian/changelog | sed 's/.*(\([^)]*\)).*/\1/'` + +{ + sed "s/__VERSION__/$VERSION/g" < utils/releasenote.header + head -n$(( $(grep -n '^ --' debian/changelog | head -n1 | cut -f1 -d:) - 2 )) debian/changelog | tail -n+3 + sed "s/__VERSION__/$VERSION/g" < utils/releasenote.footer +} > "website/news/release-$VERSION.mdwn" + +git add "website/news/release-$VERSION.mdwn" + +checksums() { + echo "checksums for the monkeysphere ${VERSION%%-*} release:" + echo + echo "MD5:" + md5sum "monkeysphere_${VERSION%%-*}.orig.tar.gz" + echo + echo "SHA1:" + sha1sum "monkeysphere_${VERSION%%-*}.orig.tar.gz" + echo + echo "SHA256:" + sha256sum "monkeysphere_${VERSION%%-*}.orig.tar.gz" +} + +checksums + +temprelease=$(mktemp) +trap "rm -f $temprelease" EXIT +set -e +head -n$(( $(grep -n '^-----BEGIN PGP SIGNED MESSAGE-----$' website/download.mdwn | head -n1 | cut -f1 -d:) - 1 )) website/download.mdwn >$temprelease +checksums | gpg --no-tty --clearsign --default-key EB8AF314 >>$temprelease +cat utils/download.mdwn.footer >>$temprelease +mv "$temprelease" website/download.mdwn +trap - EXIT +set +e + +git add website/download.mdwn + +gpg --verify website/download.mdwn |