From: Ian Jackson Date: Wed, 9 Jul 2008 10:38:33 +0000 (+0100) Subject: Do not rebuild every time ./xen-setup is run. X-Git-Tag: xen-3.3.0-rc1~50 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f2cd01780df903d20a0f68a911287993731850cc;p=qemu-xen-3.3-testing.git Do not rebuild every time ./xen-setup is run. This involves saving config-host.h while we rerun config and regenerate it, putting the saved version back, and then installing the new version only if it has changed. --- diff --git a/xen-setup b/xen-setup index 6b209360..826f9402 100755 --- a/xen-setup +++ b/xen-setup @@ -7,6 +7,8 @@ rm -f $target/Makefile rm -f $target/config.mak rm -f config-host.mak +mv config-host.h config-host.h~ + ./configure --disable-curses "$@" --prefix=/usr target=i386-dm @@ -21,4 +23,6 @@ cat xen-config-host.mak >>config-host.mak sed -e 's,qemu,xen/qemu,' config-host.h >config-host.h.new echo '#include "xen-config-host.h"' >>config-host.h.new -mv config-host.h.new config-host.h + +mv config-host.h~ config-host.h +cmp -s config-host.h.new config-host.h || mv config-host.h.new config-host.h