X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=utils%2Fbuild-releasenote;h=cac08694139fea89926e408ff74b22c6008e2c47;hb=9fb7f481e3d09d3b3658cb78bd75c4910fff8c0a;hp=b25a87c2c4cf9e7dc5f6e0122e91cc05f1f014be;hpb=d8d26503748dc78a843ad35a2e12cdae277f1415;p=monkeysphere.git diff --git a/utils/build-releasenote b/utils/build-releasenote index b25a87c..cac0869 100755 --- a/utils/build-releasenote +++ b/utils/build-releasenote @@ -1,10 +1,18 @@ #!/bin/bash -VERSION=`head -n1 packaging/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 '^ --' packaging/debian/changelog | head -n1 | cut -f1 -d:) - 2 )) packaging/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" @@ -39,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"