summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-04-17 21:46:52 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-05-03 16:25:26 -0400
commit406f5a5679116e5ca66b8932fbd49c92f3d7a87f (patch)
tree4198072fef91a114a36ff8cdeb0804a6c4b3f6d3 /utils
parenta22b46c143474b328092c93380d5e2001d89565b (diff)
updated scripts and notes for releasing
Diffstat (limited to 'utils')
-rwxr-xr-xutils/build-releasenote25
-rw-r--r--utils/preparing-release35
2 files changed, 24 insertions, 36 deletions
diff --git a/utils/build-releasenote b/utils/build-releasenote
index 71891ff..eeda316 100755
--- a/utils/build-releasenote
+++ b/utils/build-releasenote
@@ -9,26 +9,33 @@
# License: GPL, v3 or later
VERSION=`head -n1 Changelog | sed 's/.*(\([^)]*\)).*/\1/'`
+WEBSITEDIR=../monkeysphere-docs/website
+
+if [ ! -d "$WEBSITEDIR" ]; then
+ echo "you need to check out the monkeysphere-docs git repo" >&2
+ echo "as a peer of this repository to create a releasenote" >&2
+ exit 1
+fi
{
sed "s/__VERSION__/$VERSION/g" < utils/releasenote.header
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"
+} > "$WEBSITEDIR/news/release-$VERSION.mdwn"
-git add "website/news/release-$VERSION.mdwn"
+(cd "$WEBSITEDIR" && git add "news/release-$VERSION.mdwn" )
checksums() {
echo "checksums for the monkeysphere ${VERSION%%-*} release:"
echo
echo "MD5:"
- md5sum "monkeysphere_${VERSION%%-*}.orig.tar.gz"
+ md5sum "../monkeysphere_${VERSION%%-*}.orig.tar.gz"
echo
echo "SHA1:"
- sha1sum "monkeysphere_${VERSION%%-*}.orig.tar.gz"
+ sha1sum "../monkeysphere_${VERSION%%-*}.orig.tar.gz"
echo
echo "SHA256:"
- sha256sum "monkeysphere_${VERSION%%-*}.orig.tar.gz"
+ sha256sum "../monkeysphere_${VERSION%%-*}.orig.tar.gz"
}
checksums
@@ -36,16 +43,16 @@ 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 | \
+head -n$(( $(grep -n '^-----BEGIN PGP SIGNED MESSAGE-----$' "$WEBSITEDIR/download.mdwn" | head -n1 | cut -f1 -d:) - 1 )) "$WEBSITEDIR/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
+mv "$temprelease" "$WEBSITEDIR/download.mdwn"
trap - EXIT
set +e
-git add website/download.mdwn
+(cd "$WEBSITEDIR" && git add "download.mdwn")
-gpg --verify website/download.mdwn
+gpg --verify "$WEBSITEDIR/download.mdwn"
printf "please remember to add the new version to the bugtracker:\n https://labs.riseup.net/code/projects/settings/monkeysphere\n"
diff --git a/utils/preparing-release b/utils/preparing-release
index 8ecbc00..7931021 100644
--- a/utils/preparing-release
+++ b/utils/preparing-release
@@ -5,41 +5,22 @@
* have the monkeysphere archive signing key handy!
- * make tarball
-
- * make releasenote
-
- * commit outstanding changes.
-
* create upstream version tag:
- git tag -s -m 'Tagging Monkeysphere $whatever' monkeysphere_$whatever
-
- * run commands from make debian-package by hand (?) so that it
- doesn't trigger another tarball rebuild. Make sure the package
- passes lintian checks, installs, upgrades, removes reasonably, etc.
-
- * debsign -k$GPGID *.changes
+ git tag -s -m 'Tagging Monkeysphere $whatever' monkeysphere_$version master
* create debian-specific version tag:
- git tag -s -m 'Tagging Monkeysphere $whatever-1' monkeysphere_$whatever-1
+ git tag -s -m 'Tagging Monkeysphere $whatever-1' monkeysphere_$version-1 debian
- * upload to monkeysphere repo:
-
- cd repo && reprepro --ignore=wrongdistribution include experimental ../*.changes
-
- * push git changes (including tags!)
+ * make releasenote
- * update FreeBSD and Macports info:
+ * upload to monkeysphere repo:
- make freebsd-distinfo
- make macports-portsfile
+ (cd ../monkeysphere-docs/repo && reprepro --ignore=wrongdistribution include experimental ../monkeysphere_$version-1_*.changes)
- (probably should consider tagging these ports as well to make them
- easy to recover)
+ * upload to debian:
- * remember to add the new version (n + 1) to the bugtracker if it's
- not already:
+ (cd .. && dupload monkeysphere_$version-1_*.changes)
- https://labs.riseup.net/code/projects/settings/monkeysphere
+ * git push central master debian && git push --tags central master debian