ia64/xen-unstable

changeset 851:afd42c11240f

bitkeeper revision 1.529 (3f8fc2fe0B2d6C1J6fAamzO9FAybWA)

Add some error checking to xen-clone
author iap10@labyrinth.cl.cam.ac.uk
date Fri Oct 17 10:22:54 2003 +0000 (2003-10-17)
parents 17e177bd54a9
children 8305b95a7772
files tools/misc/xen-clone
line diff
     1.1 --- a/tools/misc/xen-clone	Fri Oct 17 10:16:07 2003 +0000
     1.2 +++ b/tools/misc/xen-clone	Fri Oct 17 10:22:54 2003 +0000
     1.3 @@ -60,7 +60,13 @@ cd ${TOP}
     1.4  fi
     1.5  
     1.6  # identify this version of linux
     1.7 -LINUX_VER=`( /bin/ls -ld ${DEST_BK_REP}/xenolinux-sparse || /bin/ls -ld xenolinux-*-sparse ) 2>/dev/null | sed -e 's!^.*xenolinux-\([0-9.]\+\)-sparse!\1!'`
     1.8 +LINUX_VER=`( /bin/ls -ld ${DEST_BK_REP}/xenolinux-sparse || /bin/ls -ld ${DEST_BK_REP}/xenolinux-*-sparse ) 2>/dev/null | sed -e 's!^.*xenolinux-\(.\+\)-sparse!\1!'`
     1.9 +
    1.10 +if [ -z "${LINUX_VER}" ]
    1.11 +then
    1.12 +echo Unable to identify Linux version. Bailing.
    1.13 +exit -1
    1.14 +fi
    1.15  
    1.16  # copy in the master Linux tree for this kernel
    1.17  if [ ! -d linux-${LINUX_VER} ]