xref: /openbmc/qemu/scripts/make-release (revision 8648fcd52a9bcc2aa415cbe87b7c636e545acb38)
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*8648fcd5SAndreas Färber(cd roms/seabios && git describe --tags --long --dirty > .version)
22379e21c2SCole Robinsonrm -rf .git roms/*/.git dtc/.git pixman/.git
2334bb443eSAnthony Liguoripopd
2434bb443eSAnthony Liguoritar cfj ${destination}.tar.bz2 ${destination}
2534bb443eSAnthony Liguorirm -rf ${destination}
26