From: Ian Jackson Date: Wed, 9 Jul 2008 12:06:24 +0000 (+0100) Subject: Do not attempt to move config-host.h aside if it does not exist X-Git-Tag: xen-3.3.0-rc1~48 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7c4b44a7f01ae278ea82e30bc351e3644afc3019;p=qemu-xen-3.3-testing.git Do not attempt to move config-host.h aside if it does not exist --- diff --git a/xen-setup b/xen-setup index 826f9402..c00122c6 100755 --- a/xen-setup +++ b/xen-setup @@ -7,7 +7,7 @@ rm -f $target/Makefile rm -f $target/config.mak rm -f config-host.mak -mv config-host.h config-host.h~ +if test -f config-host.h; then mv config-host.h config-host.h~; fi ./configure --disable-curses "$@" --prefix=/usr @@ -24,5 +24,5 @@ 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~ config-host.h +if test -f config-host.h~; then mv config-host.h~ config-host.h; fi cmp -s config-host.h.new config-host.h || mv config-host.h.new config-host.h