xref: /openbmc/qemu/scripts/make-release (revision 379e21c258d5faf0cd7c6f9208347726e14ae241)
134bb443eSAnthony Liguori#!/bin/bash -e
234bb443eSAnthony Liguori#
334bb443eSAnthony Liguori# QEMU Release Script
434bb443eSAnthony Liguori#
534bb443eSAnthony Liguori# Copyright IBM, Corp. 2012
634bb443eSAnthony Liguori#
734bb443eSAnthony Liguori# Authors:
834bb443eSAnthony Liguori#  Anthony Liguori <aliguori@us.ibm.com>
934bb443eSAnthony Liguori#
1034bb443eSAnthony Liguori# This work is licensed under the terms of the GNU GPLv2 or later.
1134bb443eSAnthony Liguori# See the COPYING file in the top-level directory.
1234bb443eSAnthony Liguori
1334bb443eSAnthony Liguorisrc="$1"
1434bb443eSAnthony Liguoriversion="$2"
1534bb443eSAnthony Liguoridestination=qemu-${version}
1634bb443eSAnthony Liguori
1734bb443eSAnthony Liguorigit clone "${src}" ${destination}
1834bb443eSAnthony Liguoripushd ${destination}
1934bb443eSAnthony Liguorigit checkout "v${version}"
2034bb443eSAnthony Liguorigit submodule update --init
21*379e21c2SCole Robinsonrm -rf .git roms/*/.git dtc/.git pixman/.git
2234bb443eSAnthony Liguoripopd
2334bb443eSAnthony Liguoritar cfj ${destination}.tar.bz2 ${destination}
2434bb443eSAnthony Liguorirm -rf ${destination}
25