bb_release 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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. make release || { echo "make release failed"; exit 1; }
  10. cd ..
  11. VERSION=`ls busybox-*.tar.gz | sed 's/busybox-\(.*\)\.tar\.gz/\1/'`
  12. zcat busybox-$VERSION.tar.gz | bzip2 > busybox-$VERSION.tar.bz2
  13. test -f busybox-$VERSION.tar.gz || { echo "no busybox-$VERSION.tar.gz"; exit 1; }
  14. test -f busybox-$VERSION.tar.bz2 || { echo "no busybox-$VERSION.tar.bz2"; exit 1; }
  15. signit()
  16. {
  17. echo "$1 released `date -r $1 -R`
  18. MD5: `md5sum $1`
  19. SHA1: `sha1sum $1`
  20. To verify this signature, you can obtain my public key
  21. from http://busybox.net/~vda/vda_pubkey.gpg
  22. " | gpg --clearsign > "$1.sign"
  23. }
  24. signit busybox-$VERSION.tar.gz
  25. signit busybox-$VERSION.tar.bz2