make-release 995 B

123456789101112131415161718192021222324252627282930313233
  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. (cd roms/skiboot && ./make_version.sh > .version)
  21. # Fetch edk2 submodule's submodules, since it won't have access to them via
  22. # the tarball later.
  23. #
  24. # A more uniform way to handle this sort of situation would be nice, but we
  25. # don't necessarily have much control over how a submodule handles its
  26. # submodule dependencies, so we continue to handle these on a case-by-case
  27. # basis for now.
  28. (cd roms/edk2 && git submodule update --init)
  29. popd
  30. tar --exclude=.git -cjf ${destination}.tar.bz2 ${destination}
  31. rm -rf ${destination}