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] [xen-unstable] If we find a Linux repository in $(LINUX_

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] If we find a Linux repository in $(LINUX_SRC_PATH) then symlink it
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Jun 2007 02:22:12 -0700
Delivery-date: Mon, 11 Jun 2007 02:24:04 -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 Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
# Date 1180968092 -3600
# Node ID c09dbe98e4d61d29138e8a2918d9ee8a85e1d6cf
# Parent  5710c94e65394daadafd7a6780450e01a26bf32d
If we find a Linux repository in $(LINUX_SRC_PATH) then symlink it
instead of cloning it. This enables developers to keep a linux tree
separate to their xen repository and to make changes there which are
picked up by the Xen build.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
---
 buildconfigs/src.hg-clone |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff -r 5710c94e6539 -r c09dbe98e4d6 buildconfigs/src.hg-clone
--- a/buildconfigs/src.hg-clone Mon Jun 04 15:32:11 2007 +0100
+++ b/buildconfigs/src.hg-clone Mon Jun 04 15:41:32 2007 +0100
@@ -20,17 +20,24 @@ XEN_LINUX_HGREV  ?= tip
 XEN_LINUX_HGREV  ?= tip
 
 $(LINUX_SRCDIR)/.valid-src: $(__XEN_LINUX_UPDATE)
-       set -e ; __repo=$(XEN_LINUX_HGREPO) ; \
-       if [ ! -d $(LINUX_SRCDIR) ] ; then \
-           echo "Cloning $${__repo} to $(LINUX_SRCDIR)." ; \
-           $(HG) clone $${__repo} $(LINUX_SRCDIR) ; \
+       set -e ; \
+       if [ ! -e $(LINUX_SRCDIR)/.hg ] ; then \
+           __repo=$(XEN_LINUX_HGREPO) ; \
+           if [ -d $${__repo} ] ; then \
+               echo "Linking $${__repo} to $(LINUX_SRCDIR)." ; \
+               ln -s $${__repo} $(LINUX_SRCDIR) ; \
+           else \
+               echo "Cloning $${__repo} to $(LINUX_SRCDIR)." ; \
+               $(HG) clone $${__repo} $(LINUX_SRCDIR) ; \
+           fi ; \
        else \
-           echo "Pulling changes from $${__repo} into $(LINUX_SRCDIR)." ; \
-           $(HG) -R $(LINUX_SRCDIR) pull $${__repo} ; \
+           __parent=$$($(HG) -R $(LINUX_SRCDIR) path default) ; \
+           echo "Pulling changes from $${__parent} into $(LINUX_SRCDIR)." ; \
+           $(HG) -R $(LINUX_SRCDIR) pull $${__parent} ; \
        fi
        if [ -n "$(XEN_LINUX_HGREV)" ] ; then \
            echo "Updating $(LINUX_SRCDIR) to revision $(XEN_LINUX_HGREV)." ; \
-           $(HG) update -R $(LINUX_SRCDIR) $(XEN_LINUX_HGREV) ; \
+           ( cd $(LINUX_SRCDIR) && $(HG) update $(XEN_LINUX_HGREV) ); \
        fi
        touch $@
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] If we find a Linux repository in $(LINUX_SRC_PATH) then symlink it, Xen patchbot-unstable <=