summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-01-19 02:01:35 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-01-19 02:01:35 -0500
commit6c9d5f56e446cd4f16cc271bd91aa3d4bc4b5f9f (patch)
treea0202ec356c95cf99673c4610250d8bb532b5418 /utils
parent6647104d7181e9bb08d5eaed907d985b131a6c16 (diff)
updating utils to deal with the newly split-out changelogs
Diffstat (limited to 'utils')
-rwxr-xr-xutils/build-releasenote12
-rw-r--r--utils/preparing-release4
2 files changed, 12 insertions, 4 deletions
diff --git a/utils/build-releasenote b/utils/build-releasenote
index 1dee649..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 <dkg@fifthhorseman.net>
+# 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"
diff --git a/utils/preparing-release b/utils/preparing-release
index 3273c1c..8ecbc00 100644
--- a/utils/preparing-release
+++ b/utils/preparing-release
@@ -1,7 +1,7 @@
### Notes about preparing a release for the monkeysphere ###
- * make sure that packaging/debian/changelog has a reasonable version
- number.
+ * make sure that changelog and packaging/debian/changelog both have
+ reasonable version numbers.
* have the monkeysphere archive signing key handy!