diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
commit | 4aca87515a5083ae0e31ce3177189fd43b6d05ac (patch) | |
tree | 7b1d9a31393ca090757dc6f0d3859b4fcd93f271 /release/src/router/busybox/scripts/bb_release | |
parent | 008d0be72b2f160382c6e880765e96b64a050c65 (diff) | |
download | tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.gz tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.bz2 |
patch to Vanilla Tomato 1.28
Diffstat (limited to 'release/src/router/busybox/scripts/bb_release')
-rwxr-xr-x | release/src/router/busybox/scripts/bb_release | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/release/src/router/busybox/scripts/bb_release b/release/src/router/busybox/scripts/bb_release new file mode 100755 index 00000000..8aa38043 --- /dev/null +++ b/release/src/router/busybox/scripts/bb_release @@ -0,0 +1,34 @@ +#!/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 busybox || { echo "cd busybox failed"; exit 1; } +make release || { echo "make release failed"; exit 1; } +cd .. + +VERSION=`ls busybox-*.tar.gz | sed 's/busybox-\(.*\)\.tar\.gz/\1/'` + +zcat busybox-$VERSION.tar.gz | bzip2 > busybox-$VERSION.tar.bz2 + +test -f busybox-$VERSION.tar.gz || { echo "no busybox-$VERSION.tar.gz"; exit 1; } +test -f busybox-$VERSION.tar.bz2 || { echo "no busybox-$VERSION.tar.bz2"; exit 1; } + +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://busybox.net/~vda/vda_pubkey.gpg +" | gpg --clearsign > "$1.sign" +} + +signit busybox-$VERSION.tar.gz +signit busybox-$VERSION.tar.bz2 |