2
0

make-release 590 B

12345678910111213141516171819202122232425
  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. (cd roms/seabios && git describe --tags --long --dirty > .version)
  20. rm -rf .git roms/*/.git dtc/.git pixman/.git
  21. popd
  22. tar cfj ${destination}.tar.bz2 ${destination}
  23. rm -rf ${destination}