direct-io.hg

changeset 5619:8041c2fa1cbc

Update xen-clone script for hg. Still missing revision selection functionality.
Signed-off-by: ian@xensource.com
author iap10@freefall.cl.cam.ac.uk
date Fri Jul 01 02:12:36 2005 +0000 (2005-07-01)
parents f4768892d6dd
children 132e23381692
files tools/misc/xen-clone
line diff
     1.1 --- a/tools/misc/xen-clone	Fri Jul 01 01:28:45 2005 +0000
     1.2 +++ b/tools/misc/xen-clone	Fri Jul 01 02:12:36 2005 +0000
     1.3 @@ -1,6 +1,6 @@
     1.4  #!/bin/sh -x
     1.5  
     1.6 -# usage: xen-clone bk_repository dest_dir orig_linux_dir
     1.7 +# usage: xen-clone hg_repository dest_dir orig_linux_dir
     1.8  # 
     1.9  # this script contains some CL site specific details, but can easily be adapted
    1.10  #
    1.11 @@ -10,22 +10,20 @@
    1.12  
    1.13  case "$SITE" in
    1.14  UCCL)
    1.15 -	BK_REP=${1:-/usr/groups/xeno/BK/xeno.bk}
    1.16 -	# BK_REP=${1:-xeno-master/xeno.bk}
    1.17 +	BK_REP=${1:-http://hg.srg.cl.cam.ac.uk/xen-unstable.hg}
    1.18  	LINUX_DIR=${3:-/usr/groups/xeno/archive/}
    1.19  	;;
    1.20  *)
    1.21 -	BK_REP=${1:-bk://xen.bkbits.net/xeno-1.0.bk}
    1.22 -	# BK_REP=${1:-ssh://xen@xen.bkbits.net/xeno-1.0.bk}
    1.23 +	BK_REP=${1:-http://xenbits.xensource.com/xen-unstable.hg}
    1.24  	LINUX_DIR=${3:-.:..}
    1.25  ;;
    1.26  esac
    1.27  
    1.28  DEST_DIR=${2:-xeno-clone}
    1.29  DEST_BK_REP=`basename "${BK_REP}"`
    1.30 -DEST_VER=`basename ${DEST_BK_REP} .bk`
    1.31 +DEST_VER=`basename ${DEST_BK_REP} .hg`
    1.32  
    1.33 -echo usage: xen-clone bk_repository dest_dir orig_linux_dir
    1.34 +echo usage: xen-clone hg dest_dir orig_linux_dir
    1.35  echo Source BK Repository : ${BK_REP}
    1.36  echo Destination Dir/Repository : ${DEST_DIR}/${DEST_BK_REP}
    1.37  echo Pristine Linux Source directory : ${LINUX_DIR}
    1.38 @@ -54,10 +52,10 @@ esac
    1.39  # clone the master repository (now checked-out by default)
    1.40  if [ ! -d ${DEST_BK_REP} ] 
    1.41  then 
    1.42 -bk clone ${BK_REP} ${DEST_BK_REP}
    1.43 +mkdir -p ${DEST_BK_REP} ; cd ${DEST_BK_REP} ; hg init ${BK_REP} ${DEST_BK_REP} ; hg co ; cd ${TOP}
    1.44  else
    1.45  cd ${DEST_BK_REP}
    1.46 -bk pull
    1.47 +hg pull ; hg co
    1.48  cd ${TOP}
    1.49  fi
    1.50  
    1.51 @@ -79,8 +77,8 @@ then
    1.52    ln -sf ../install install
    1.53   fi
    1.54  
    1.55 - make -j4 world
    1.56 - make -j4 linux24
    1.57 + make -j4 KERNELS=linux-* world
    1.58 + #make -j4 linux24
    1.59   cd ../install/boot
    1.60   if [ -r vmlinuz-2.6-xen0 ]
    1.61   then