diff options
author | kaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk> | 2004-11-02 21:00:50 +0000 |
---|---|---|
committer | kaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk> | 2004-11-02 21:00:50 +0000 |
commit | b37cf37288acf290431f9a7f8b1c6b91a1020540 (patch) | |
tree | d53c290a246d861caf7537eb5afd152f4b55fc8e /install.sh | |
parent | f35b12f0e2fb1d1e4f01a7cdb732e3192302c4ec (diff) | |
download | xen-b37cf37288acf290431f9a7f8b1c6b91a1020540.tar.gz xen-b37cf37288acf290431f9a7f8b1c6b91a1020540.tar.bz2 xen-b37cf37288acf290431f9a7f8b1c6b91a1020540.zip |
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.
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/install.sh b/install.sh index 2c8f38f06d..6e12009660 100755 --- a/install.sh +++ b/install.sh @@ -1,24 +1,29 @@ #!/bin/sh -if ! [ -d ./install ]; then - echo "ERROR: You must build Xen before it can be installed." - echo " For example, 'make dist'." +src='./install' +if [ -d ./dist ]; then + src='./dist/install' +fi + +if ! [ -d $src ]; then + echo "ERROR: Could not find a valid distribution directory." + echo " If this is a source-only release, try 'make dist'." exit 1 fi -prefix='/' +dst='/' if [ $# -ne 0 ]; then - prefix=$1 + dst=$1 fi -if ! [ -d $prefix ]; then +if ! [ -d $dst ]; then echo "ERROR: You must specify a valid install directory." - echo " The specified directory '$prefix' is not valid." + echo " The specified directory '$dst' is not valid." exit 1 fi -echo "Installing Xen to '$prefix'..." -cp -fdR ./install/* $prefix +echo "Installing Xen from '$src' to '$dst'..." +cp -fdR $src/* $dst echo "All done." exit 0 |