All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] refetch qemu if QEMU_TAG changed
@ 2010-10-29  6:57 Juergen Gross
  2010-10-29  7:20 ` Ian Campbell
  0 siblings, 1 reply; 6+ messages in thread
From: Juergen Gross @ 2010-10-29  6:57 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

Check for a changed QEMU_TAG. If it has changed since last build, delete old
qemu sources and refetch with new QEMU_TAG.

Signed-off-by: juergen.gross@ts.fujitsu.com


1 file changed, 8 insertions(+)
tools/Makefile |    8 ++++++++



[-- Attachment #2: xen-work.patch --]
[-- Type: text/x-patch, Size: 1146 bytes --]

# HG changeset patch
# User Juergen Gross <juergen.gross@ts.fujitsu.com>
# Date 1288335441 -7200
# Node ID fca5fe608144ae6e82f48c314639b2fe59d2cfcd
# Parent  d60c1258c6b75f6de0bb9e09b27ac9e86c974908
refetch qemu if QEMU_TAG changed

Check for a changed QEMU_TAG. If it has changed since last build, delete old
qemu sources and refetch with new QEMU_TAG.

Signed-off-by: juergen.gross@ts.fujitsu.com

diff -r d60c1258c6b7 -r fca5fe608144 tools/Makefile
--- a/tools/Makefile	Fri Oct 29 07:54:27 2010 +0200
+++ b/tools/Makefile	Fri Oct 29 08:57:21 2010 +0200
@@ -91,6 +91,13 @@
 	$(MAKE) -C ioemu distclean
 
 ioemu-dir-find:
+	set -e;								\
+	if [ "$(QEMU_TAG)" ]; then					\
+		if [ ! -r qemu_tag.$(QEMU_TAG) ]; then			\
+			rm -f ioemu-dir qemu_tag.* 2>/dev/null;		\
+			rm -rf ioemu-remote $(CONFIG_QEMU) 2>/dev/null;	\
+		fi;							\
+	fi
 	set -ex; \
 	if test -d $(CONFIG_QEMU); then \
 		rm -f ioemu-dir; \
@@ -105,6 +112,7 @@
 				$(GIT) branch -D dummy >/dev/null 2>&1 ||:; \
 				$(GIT) checkout -b dummy $(QEMU_TAG);	\
 				cd ..;					\
+				> qemu_tag.$(QEMU_TAG);			\
 			fi;						\
 			mv ioemu-remote.tmp ioemu-remote; \
 		fi; \

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-11-09 18:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-29  6:57 [PATCH] refetch qemu if QEMU_TAG changed Juergen Gross
2010-10-29  7:20 ` Ian Campbell
2010-10-29  7:31   ` Juergen Gross
2010-10-29 16:12   ` Brendan Cully
2010-11-09 14:23     ` Ian Campbell
2010-11-09 18:15       ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.