ia64/xen-unstable

changeset 2734:e179120c0693

bitkeeper revision 1.1159.1.276 (417d6277RUrjgN8Byhbusyfr7nmjbw)

mkbuildtree:
Prevent disaster when tree to xenify doesn't exist.
author cl349@freefall.cl.cam.ac.uk
date Mon Oct 25 20:30:47 2004 +0000 (2004-10-25)
parents b5c439563b62
children 05a96f9cc650
files linux-2.6.9-xen-sparse/mkbuildtree
line diff
     1.1 --- a/linux-2.6.9-xen-sparse/mkbuildtree	Mon Oct 25 20:21:00 2004 +0000
     1.2 +++ b/linux-2.6.9-xen-sparse/mkbuildtree	Mon Oct 25 20:30:47 2004 +0000
     1.3 @@ -78,7 +78,7 @@ relative_lndir ()
     1.4  
     1.5  # Get absolute path to the destination directory
     1.6  pushd . >/dev/null
     1.7 -cd ${1}
     1.8 +cd ${1} || { echo "cannot cd to ${1}"; exit 1; }
     1.9  AD=$PWD
    1.10  popd >/dev/null
    1.11    
    1.12 @@ -93,7 +93,7 @@ RS=$DESTPATH
    1.13  for i in `find . -type f -o -type l` ; do rm -f ${AD}/${i#./} ; done
    1.14  
    1.15  # We now work from the destination directory
    1.16 -cd ${AD}
    1.17 +cd ${AD} || { echo "cannot cd to ${AD}"; exit 1; }
    1.18  
    1.19  # Remove old symlinks
    1.20  for i in `find . -type l`; do rm -f $i; done