3
0

bb_release 835 B

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