ia64/xen-unstable

view install.sh @ 2828:62d5a53a46e2

bitkeeper revision 1.1159.1.338 (4187ca95yoh3y8SwBJw4uTmgIxLCTw)

A new install script to install from the intermediate 'install' subdir.
Also now a bit more careful in use of 'cp -a'. When installing to
system-wide directories we probably do not want to preserve ownership
of the random unprivileged user that originally built the binaries.
The user who does the install (probably root) is the correct person
to own the target files.
author kaf24@freefall.cl.cam.ac.uk
date Tue Nov 02 17:57:41 2004 +0000 (2004-11-02)
parents
children 565da10c07de
line source
1 #!/bin/sh
3 if ! [ -d ./install ]; then
4 echo "ERROR: You must build Xen before it can be installed."
5 echo " For example, 'make dist'."
6 exit 1
7 fi
9 prefix='/'
10 if [ $# -ne 0 ]; then
11 prefix=$1
12 fi
14 if ! [ -d $prefix ]; then
15 echo "ERROR: You must specify a valid install directory."
16 echo " The specified directory '$prefix' is not valid."
17 exit 1
18 fi
20 echo "Installing Xen to '$prefix'..."
21 cp -fdR ./install/* $prefix
22 echo "All done."
24 exit 0