WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [IA64] make xen-mkbuildtree-pre robust a bit

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [IA64] make xen-mkbuildtree-pre robust a bit
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Apr 2006 10:32:17 +0000
Delivery-date: Thu, 27 Apr 2006 03:35:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID b579cf0ad753a6c5d599bd17d43a9a5a888276b6
# Parent  d75a6cc5e68abe8541c326afa2a614bf1973c609
[IA64] make xen-mkbuildtree-pre robust a bit

make linux-2.6-xen-sparse/arch/ia64/xen-mkbuildtree-pre robust a bit.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r d75a6cc5e68a -r b579cf0ad753 
linux-2.6-xen-sparse/arch/ia64/xen-mkbuildtree-pre
--- a/linux-2.6-xen-sparse/arch/ia64/xen-mkbuildtree-pre        Tue Mar 28 
08:54:58 2006 -0700
+++ b/linux-2.6-xen-sparse/arch/ia64/xen-mkbuildtree-pre        Wed Mar 29 
12:40:01 2006 -0700
@@ -6,21 +6,31 @@
 # for building (as all files in mv'd directories are thought by hg
 # to have been deleted).  I don't know how to avoid this right now,
 # but if someone has a better way, I'm all ears
-if [ ! -e mm.xen-x86 ]
-then
-       mv mm mm.xen-x86
-       mkdir mm
-       mv net net.xen-x86
-       mv kernel kernel.xen-x86
-       mv drivers/acpi/tables.c drivers/acpi/tables.c.xen-x86
-#      mv arch/xen/kernel drivers/xen/core
-#      mv arch/xen arch/xen.xen-x86
-#      mkdir arch/xen
-#      mv arch/xen.xen-x86/configs arch/xen
-#      mv include/asm-generic include/asm-generic.xen-x86
-       mv include/linux include/linux.xen-x86
-       mkdir include/linux
-fi
+
+function try_to_mv() {
+       if [ ! -e $2 ]
+       then
+               mv $1 $2
+       fi
+}
+
+function try_to_mkdir() {
+       if [ ! -e $2 ]
+       then
+               mv $1 $2
+               mkdir $1
+       fi
+}
+
+try_to_mkdir mm mm.xen-x86
+try_to_mv net net.xen-x86
+try_to_mv kernel kernel.xen-x86
+try_to_mv drivers/acpi/tables.c drivers/acpi/tables.c.xen-x86
+#try_to_mv arch/xen/kernel drivers/xen/core
+#try_to_mkdir arch/xen arch/xen.xen-x86
+#try_to_mv arch/xen.xen-x86/configs arch/xen
+#try_to_mv include/asm-generic include/asm-generic.xen-x86
+try_to_mkdir include/linux include/linux.xen-x86
 
 # need to grab a couple of xen-modified files for generic_page_range and
 # typedef pte_fn_t which are used by driver/xen blkif

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [IA64] make xen-mkbuildtree-pre robust a bit, Xen patchbot -unstable <=