Files
xen/install.sh
T
cl349@firebug.cl.cam.ac.uk d334aaae95 bitkeeper revision 1.1159.258.123 (42852fd48Nr7wIoriw8GV3ZAjVOw8Q)
Many files:
  Create vmlinuz-$(VERSION).$(PATCHLEVEL)-$(XENGUEST) and
  vmlinuz-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)-$(XENGUEST) symlinks in
  dist/install/boot from kernel build target.
install.sh:
  No need to create vmlinuz symlinks in dist/install/boot from install.sh
  anymore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-13 22:53:08 +00:00

35 lines
653 B
Bash
Executable File

#!/bin/sh
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
dst='/'
if [ $# -ne 0 ]; then
dst=$1
fi
if ! [ -d $dst ]; then
echo "ERROR: You must specify a valid install directory."
echo " The specified directory '$dst' is not valid."
exit 1
fi
echo "Installing Xen from '$src' to '$dst'..."
cp -fdRL $src/* $dst
echo "All done."
echo "Checking to see whether prerequisite tools are installed..."
cd $src/../check
./chk install
echo "All done."
exit 0