From 7c4b44a7f01ae278ea82e30bc351e3644afc3019 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 9 Jul 2008 13:06:24 +0100 Subject: [PATCH] Do not attempt to move config-host.h aside if it does not exist --- xen-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5