#/bin/sh

# Create signed release tarballs and signature files from current svn.
# Since you don't have my gpg key, this doesn't do you much good, but if I get
# hit by a bus the next maintainer might find this useful.  Run this in an
# empty directory.  (The VERSION= line can get confused otherwise.)

#svn co svn://busybox.net/trunk/busybox
cd uClibc
make release
cd ..

VERSION=$(ls uClibc-*.tar.bz2 | sed 's/uClibc-\(.*\)\.tar\.bz2/\1/')

bzcat uClibc-$VERSION.tar.bz2 | gzip -9 > uClibc-$VERSION.tar.gz

function signit
{
echo "$1 released `date -r $1 -R`

MD5:  `md5sum $1`
SHA1: `sha1sum $1`

To verify this signature, you can obtain my public key
from http://landley.net/pubkey.gpg
" | gpg --clearsign > "$1.sign"
}

signit uClibc-$VERSION.tar.gz
signit uClibc-$VERSION.tar.bz2
