]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commitdiff
Do not attempt to move config-host.h aside if it does not exist
authorIan Jackson <iwj@mariner.uk.xensource.com>
Wed, 9 Jul 2008 12:06:24 +0000 (13:06 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 9 Jul 2008 12:06:24 +0000 (13:06 +0100)
xen-setup

index 826f94027cc0fcbe6ce95110182b7a53747db9c7..c00122c64fdf939ad75b468004c911e42a5d1b4a 100755 (executable)
--- 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