mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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.
25 lines
461 B
Bash
Executable File
25 lines
461 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if ! [ -d ./install ]; then
|
|
echo "ERROR: You must build Xen before it can be installed."
|
|
echo " For example, 'make dist'."
|
|
exit 1
|
|
fi
|
|
|
|
prefix='/'
|
|
if [ $# -ne 0 ]; then
|
|
prefix=$1
|
|
fi
|
|
|
|
if ! [ -d $prefix ]; then
|
|
echo "ERROR: You must specify a valid install directory."
|
|
echo " The specified directory '$prefix' is not valid."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Installing Xen to '$prefix'..."
|
|
cp -fdR ./install/* $prefix
|
|
echo "All done."
|
|
|
|
exit 0
|