xref: /openbmc/qemu/scripts/make-release (revision 34bb443ee74df3780d86044dbf6492eb798c5807)
1*34bb443eSAnthony Liguori#!/bin/bash -e
2*34bb443eSAnthony Liguori#
3*34bb443eSAnthony Liguori# QEMU Release Script
4*34bb443eSAnthony Liguori#
5*34bb443eSAnthony Liguori# Copyright IBM, Corp. 2012
6*34bb443eSAnthony Liguori#
7*34bb443eSAnthony Liguori# Authors:
8*34bb443eSAnthony Liguori#  Anthony Liguori <aliguori@us.ibm.com>
9*34bb443eSAnthony Liguori#
10*34bb443eSAnthony Liguori# This work is licensed under the terms of the GNU GPLv2 or later.
11*34bb443eSAnthony Liguori# See the COPYING file in the top-level directory.
12*34bb443eSAnthony Liguori
13*34bb443eSAnthony Liguorisrc="$1"
14*34bb443eSAnthony Liguoriversion="$2"
15*34bb443eSAnthony Liguoridestination=qemu-${version}
16*34bb443eSAnthony Liguori
17*34bb443eSAnthony Liguorigit clone "${src}" ${destination}
18*34bb443eSAnthony Liguoripushd ${destination}
19*34bb443eSAnthony Liguorigit checkout "v${version}"
20*34bb443eSAnthony Liguorigit submodule update --init
21*34bb443eSAnthony Liguorirm -rf .git roms/*/.git
22*34bb443eSAnthony Liguoripopd
23*34bb443eSAnthony Liguoritar cfj ${destination}.tar.bz2 ${destination}
24*34bb443eSAnthony Liguorirm -rf ${destination}
25