ia64/xen-unstable

view install.sh @ 3036:e8a7fc6398af

bitkeeper revision 1.1159.178.3 (419cb8c1UgT4GEBjhcYkdZbYSHPLpw)

Merge arcadians.cl.cam.ac.uk:/auto/groups/xeno/BK/xen-2.0-testing.bk
into arcadians.cl.cam.ac.uk:/auto/groups/xeno/BK/xen-unstable.bk
author cl349@arcadians.cl.cam.ac.uk
date Thu Nov 18 14:59:13 2004 +0000 (2004-11-18)
parents 622f60f46a5a
children 30d3c3a3018d 074d7606fd61 d8ba911dce48 0dc3b8b8c298
line source
1 #!/bin/sh
3 src='./install'
4 if [ -d ./dist ]; then
5 src='./dist/install'
6 fi
8 if ! [ -d $src ]; then
9 echo "ERROR: Could not find a valid distribution directory."
10 echo " If this is a source-only release, try 'make dist'."
11 exit 1
12 fi
14 dst='/'
15 if [ $# -ne 0 ]; then
16 dst=$1
17 fi
19 if ! [ -d $dst ]; then
20 echo "ERROR: You must specify a valid install directory."
21 echo " The specified directory '$dst' is not valid."
22 exit 1
23 fi
25 echo "Installing Xen from '$src' to '$dst'..."
26 cp -fdR $src/* $dst
27 echo "All done."
29 echo "Checking to see whether prerequisite tools are installed..."
30 cd $src/../check
31 ./chk install
32 echo "All done."
34 exit 0