From 34bb443ee74df3780d86044dbf6492eb798c5807 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Tue, 17 Jul 2012 13:33:32 -0500 Subject: build: add make dist target (v2) Let's stop screwing up releases by having a script do the work that Anthony's fat fingers can't seem to get right. Cc: Michael Roth Reviewed-by: Eric Blake Tested-by: Michael Roth Signed-off-by: Anthony Liguori --- scripts/make-release | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 scripts/make-release (limited to 'scripts') diff --git a/scripts/make-release b/scripts/make-release new file mode 100755 index 0000000000..196c755f57 --- /dev/null +++ b/scripts/make-release @@ -0,0 +1,24 @@ +#!/bin/bash -e +# +# QEMU Release Script +# +# Copyright IBM, Corp. 2012 +# +# Authors: +# Anthony Liguori +# +# This work is licensed under the terms of the GNU GPLv2 or later. +# See the COPYING file in the top-level directory. + +src="$1" +version="$2" +destination=qemu-${version} + +git clone "${src}" ${destination} +pushd ${destination} +git checkout "v${version}" +git submodule update --init +rm -rf .git roms/*/.git +popd +tar cfj ${destination}.tar.bz2 ${destination} +rm -rf ${destination} -- cgit v1.2.3-55-g7522