aboutsummaryrefslogtreecommitdiff
path: root/scripts/make-release
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-07-17 13:33:32 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2012-07-17 15:43:16 -0500
commit34bb443ee74df3780d86044dbf6492eb798c5807 (patch)
treef198891d71f10b7870da06fb36866899d20cc874 /scripts/make-release
parent86ee5bc304249da960e7e8b9b567583960745993 (diff)
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 <mdroth@linux.vnet.ibm.com> Reviewed-by: Eric Blake <eblake@redhat.com> Tested-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'scripts/make-release')
-rwxr-xr-xscripts/make-release24
1 files changed, 24 insertions, 0 deletions
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 <aliguori@us.ibm.com>
+#
+# 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}