xref: /openbmc/qemu/scripts/make-release (revision d0dead3b6df7f6cd970ed02e8369ab8730aac9d3)
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
218648fcd5SAndreas Färber(cd roms/seabios && git describe --tags --long --dirty > .version)
22379e21c2SCole Robinsonrm -rf .git roms/*/.git dtc/.git pixman/.git
23*d0dead3bSMichael Roth# FIXME: The following line is a workaround for avoiding filename collisions
24*d0dead3bSMichael Roth# when unpacking u-boot sources on case-insensitive filesystems. Once we
25*d0dead3bSMichael Roth# update to something with u-boot commit 610eec7f0 we can drop this line.
26*d0dead3bSMichael Rothtar cfj roms/u-boot.tar.bz2 -C roms u-boot && rm -rf roms/u-boot
2734bb443eSAnthony Liguoripopd
2834bb443eSAnthony Liguoritar cfj ${destination}.tar.bz2 ${destination}
2934bb443eSAnthony Liguorirm -rf ${destination}
30