Skip to contentSkip to conversation

Support using a specific branch or tag of ioemu-remote

PATCH New Ian Jackson 1 participant 1 message Jul 25, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Support using a specific branch or tag of ioemu-remote

With this patch you can set QEMU_TAG to check out a specific version. When we set it, QEMU_TAG ought to be in Config.mk, I think.

tools/Makefile +6 -0
diff -r a7642acd9caf tools/Makefile
@@ -78,6 +78,12 @@ ioemu-dir-find:
 			rm -rf ioemu-remote ioemu-remote.tmp; \
 			mkdir ioemu-remote.tmp; rmdir ioemu-remote.tmp; \
 			$(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \
+			if [ "$(QEMU_TAG)" ]; then			\
+				cd ioemu-remote.tmp;			\
+				$(GIT) branch -D dummy >/dev/null 2>&1 ||:; \
+				$(GIT) checkout -b dummy $(QEMU_TAG);	\
+				cd ..;					\
+			fi;						\
 			mv ioemu-remote.tmp ioemu-remote; \
 		fi; \
 		rm -f ioemu-dir; \