From b37cf37288acf290431f9a7f8b1c6b91a1020540 Mon Sep 17 00:00:00 2001 From: "kaf24@freefall.cl.cam.ac.uk" Date: Tue, 2 Nov 2004 21:00:50 +0000 Subject: 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. --- install.sh | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'install.sh') 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 -- cgit v1.2.3