make-release 502 B

123456789101112131415161718192021222324
  1. #!/bin/bash -e
  2. #
  3. # QEMU Release Script
  4. #
  5. # Copyright IBM, Corp. 2012
  6. #
  7. # Authors:
  8. # Anthony Liguori <aliguori@us.ibm.com>
  9. #
  10. # This work is licensed under the terms of the GNU GPLv2 or later.
  11. # See the COPYING file in the top-level directory.
  12. src="$1"
  13. version="$2"
  14. destination=qemu-${version}
  15. git clone "${src}" ${destination}
  16. pushd ${destination}
  17. git checkout "v${version}"
  18. git submodule update --init
  19. rm -rf .git roms/*/.git
  20. popd
  21. tar cfj ${destination}.tar.bz2 ${destination}
  22. rm -rf ${destination}