2
0

make-release 879 B

1234567891011121314151617181920212223242526272829
  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. # FIXME: The following line is a workaround for avoiding filename collisions
  22. # when unpacking u-boot sources on case-insensitive filesystems. Once we
  23. # update to something with u-boot commit 610eec7f0 we can drop this line.
  24. tar cfj roms/u-boot.tar.bz2 -C roms u-boot && rm -rf roms/u-boot
  25. popd
  26. tar cfj ${destination}.tar.bz2 ${destination}
  27. rm -rf ${destination}