ia64/xen-unstable

view install.sh @ 2830:565da10c07de

bitkeeper revision 1.1159.1.340 (4187f582gn4AZ67FyEzNonoTpbod3w)

Fix 'make dist' so that it creates a dist/ directory suitable for turning
into a binary-only distribution tarball.
author kaf24@freefall.cl.cam.ac.uk
date Tue Nov 02 21:00:50 2004 +0000 (2004-11-02)
parents 62d5a53a46e2
children 0d70a2747177 622f60f46a5a
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 exit 0