1#!/bin/sh 2 3# Create signed release tarballs and signature files from current svn. 4# Since you don't have my gpg key, this doesn't do you much good, 5# but if I get hit by a bus the next maintainer might find this useful. 6# Run this in an empty directory. The VERSION= line can get confused 7# otherwise. 8 9#svn co svn://busybox.net/trunk/busybox 10cd busybox || { echo "cd busybox failed"; exit 1; } 11make release || { echo "make release failed"; exit 1; } 12cd .. 13 14VERSION=`ls busybox-*.tar.gz | sed 's/busybox-\(.*\)\.tar\.gz/\1/'` 15 16zcat busybox-$VERSION.tar.gz | bzip2 > busybox-$VERSION.tar.bz2 17 18for releasefile in busybox-$VERSION.tar.gz busybox-$VERSION.tar.bz2; do 19 test -f $releasefile || { echo "no $releasefile"; exit 1; } 20 gpg --detach-sign $releasefile 21 sha256sum $releasefile > $releasefile.sha256 22done 23