Denis Vlasenko | 0dc490b | 2008-03-21 09:56:19 +0000 | [diff] [blame] | 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 |
| 10 | cd busybox || { echo "cd busybox failed"; exit 1; } |
Denys Vlasenko | 9daa877 | 2021-01-01 13:34:25 +0100 | [diff] [blame] | 11 | chmod -Rc u+w,a+rX,go-w . |
Denis Vlasenko | 0dc490b | 2008-03-21 09:56:19 +0000 | [diff] [blame] | 12 | make release || { echo "make release failed"; exit 1; } |
| 13 | cd .. |
| 14 | |
| 15 | VERSION=`ls busybox-*.tar.gz | sed 's/busybox-\(.*\)\.tar\.gz/\1/'` |
| 16 | |
| 17 | zcat busybox-$VERSION.tar.gz | bzip2 > busybox-$VERSION.tar.bz2 |
| 18 | |
Eli Schwartz | 6fb8bd7 | 2018-06-05 12:48:53 -0400 | [diff] [blame] | 19 | for releasefile in busybox-$VERSION.tar.gz busybox-$VERSION.tar.bz2; do |
| 20 | test -f $releasefile || { echo "no $releasefile"; exit 1; } |
| 21 | gpg --detach-sign $releasefile |
| 22 | sha256sum $releasefile > $releasefile.sha256 |
| 23 | done |