ia64/xen-unstable

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/install.sh	Tue Nov 02 17:57:41 2004 +0000
     1.3 @@ -0,0 +1,24 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +if ! [ -d ./install ]; then
     1.7 +  echo "ERROR: You must build Xen before it can be installed."
     1.8 +  echo "       For example, 'make dist'."
     1.9 +  exit 1
    1.10 +fi
    1.11 +
    1.12 +prefix='/'
    1.13 +if [ $# -ne 0 ]; then 
    1.14 +  prefix=$1
    1.15 +fi
    1.16 +
    1.17 +if ! [ -d $prefix ]; then
    1.18 +  echo "ERROR: You must specify a valid install directory."
    1.19 +  echo "       The specified directory '$prefix' is not valid."
    1.20 +  exit 1
    1.21 +fi
    1.22 +
    1.23 +echo "Installing Xen to '$prefix'..."
    1.24 +cp -fdR ./install/* $prefix
    1.25 +echo "All done."
    1.26 +
    1.27 +exit 0