xref: /openbmc/qemu/scripts/make-release (revision 3fccd3f26ef3c0c76a06c138b17af6d55a5d9904)
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)
22*3fccd3f2SMichael Roth(cd roms/skiboot && ./make_version.sh > .version)
23d0dead3bSMichael Roth# FIXME: The following line is a workaround for avoiding filename collisions
24d0dead3bSMichael Roth# when unpacking u-boot sources on case-insensitive filesystems. Once we
25d0dead3bSMichael Roth# update to something with u-boot commit 610eec7f0 we can drop this line.
26d0081e8fSCole Robinsontar --exclude=.git -cjf roms/u-boot.tar.bz2 -C roms u-boot && rm -rf roms/u-boot
2734bb443eSAnthony Liguoripopd
28d0081e8fSCole Robinsontar --exclude=.git -cjf ${destination}.tar.bz2 ${destination}
2934bb443eSAnthony Liguorirm -rf ${destination}
30