ia64/xen-unstable

view buildconfigs/src.hg-clone @ 18836:ab0c1bdede53

Merge with ia64 tree.
author Keir Fraser <keir.fraser@citrix.com>
date Wed Nov 26 11:14:26 2008 +0000 (2008-11-26)
parents 923b8dbb0fed
children
line source
1 # Mercurial
2 HG ?= hg
4 LINUX_SRCDIR ?= linux-$(LINUX_VER)-xen.hg
6 # Repository to clone.
7 XEN_LINUX_HGREPO ?= $$(sh buildconfigs/select-repository $(LINUX_SRCDIR) $(LINUX_SRC_PATH))
9 # Set XEN_LINUX_HGREV to update to a particlar revision.
10 XEN_LINUX_HGREV ?= tip
12 $(LINUX_SRCDIR)/.valid-src: $(__XEN_LINUX_UPDATE)
13 set -e ; \
14 if [ ! -e $(LINUX_SRCDIR)/.hg ] ; then \
15 __repo=$(XEN_LINUX_HGREPO) ; \
16 if [ -d $${__repo} ] ; then \
17 echo "Linking $${__repo} to $(LINUX_SRCDIR)." ; \
18 ln -s $${__repo} $(LINUX_SRCDIR) ; \
19 else \
20 echo "Cloning $${__repo} to $(LINUX_SRCDIR)." ; \
21 $(HG) clone $${__repo#file://} $(LINUX_SRCDIR) ; \
22 fi ; \
23 else \
24 __parent=$$($(HG) -R $(LINUX_SRCDIR) path default) ; \
25 echo "Pulling changes from $${__parent} into $(LINUX_SRCDIR)." ; \
26 $(HG) -R $(LINUX_SRCDIR) pull $${__parent} ; \
27 fi
28 set -e ; if [ -n "$(XEN_LINUX_HGREV)" ] ; then \
29 echo "Updating $(LINUX_SRCDIR) to revision $(XEN_LINUX_HGREV)." ; \
30 ( cd $(LINUX_SRCDIR) && $(HG) update $(XEN_LINUX_HGREV) ); \
31 fi
32 touch $@