ia64/xen-unstable

annotate 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
rev   line source
kaf24@2828 1 #!/bin/sh
kaf24@2828 2
kaf24@2828 3 if ! [ -d ./install ]; then
kaf24@2828 4 echo "ERROR: You must build Xen before it can be installed."
kaf24@2828 5 echo " For example, 'make dist'."
kaf24@2828 6 exit 1
kaf24@2828 7 fi
kaf24@2828 8
kaf24@2828 9 prefix='/'
kaf24@2828 10 if [ $# -ne 0 ]; then
kaf24@2828 11 prefix=$1
kaf24@2828 12 fi
kaf24@2828 13
kaf24@2828 14 if ! [ -d $prefix ]; then
kaf24@2828 15 echo "ERROR: You must specify a valid install directory."
kaf24@2828 16 echo " The specified directory '$prefix' is not valid."
kaf24@2828 17 exit 1
kaf24@2828 18 fi
kaf24@2828 19
kaf24@2828 20 echo "Installing Xen to '$prefix'..."
kaf24@2828 21 cp -fdR ./install/* $prefix
kaf24@2828 22 echo "All done."
kaf24@2828 23
kaf24@2828 24 exit 0