X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=utils%2Fbuild-releasenote;h=71891ff9e1fc0a10eacda5c851b64487835e7e17;hb=f2e90a01372b60d5511fb07d56223b3900100f63;hp=1b832a43cb33a71b7c3c987e47212a15bce5aca3;hpb=5c3ec72ee2c2f5a0d6d942b0998ba8cc3369f608;p=monkeysphere.git diff --git a/utils/build-releasenote b/utils/build-releasenote index 1b832a4..71891ff 100755 --- a/utils/build-releasenote +++ b/utils/build-releasenote @@ -1,10 +1,18 @@ #!/bin/bash -VERSION=`head -n1 debian/changelog | sed 's/.*(\([^)]*\)).*/\1/'` +# script to build a release announcement for the Monkeysphere +# if you're running this, you probably also want to read through +# the checklist in utils/preparing-release. + +# Author: Daniel Kahn Gillmor +# Copyright: © 2008-2010 +# License: GPL, v3 or later + +VERSION=`head -n1 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 + head -n$(( $(grep -n '^ --' Changelog | head -n1 | cut -f1 -d:) - 2 )) Changelog | tail -n+3 sed "s/__VERSION__/$VERSION/g" < utils/releasenote.footer } > "website/news/release-$VERSION.mdwn" @@ -28,7 +36,8 @@ checksums temprelease=$(mktemp ${TMPDIR:-/tmp}/tmp.XXXXXXXXXX) 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 +head -n$(( $(grep -n '^-----BEGIN PGP SIGNED MESSAGE-----$' website/download.mdwn | head -n1 | cut -f1 -d:) - 1 )) website/download.mdwn | \ + sed -e 's|http://archive\.monkeysphere\.info/debian/pool/monkeysphere/m/monkeysphere/monkeysphere_[[:digit:].]\+\.orig\.tar\.gz|http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/monkeysphere_'"${VERSION%%-*}"'.orig.tar.gz|g' >$temprelease checksums | gpg --no-tty --clearsign --default-key EB8AF314 >>$temprelease cat utils/download.mdwn.footer >>$temprelease mv "$temprelease" website/download.mdwn @@ -38,3 +47,5 @@ set +e git add website/download.mdwn gpg --verify website/download.mdwn + +printf "please remember to add the new version to the bugtracker:\n https://labs.riseup.net/code/projects/settings/monkeysphere\n"