ia64/xen-unstable

changeset 2828:62d5a53a46e2

bitkeeper revision 1.1159.1.338 (4187ca95yoh3y8SwBJw4uTmgIxLCTw)

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.
author kaf24@freefall.cl.cam.ac.uk
date Tue Nov 02 17:57:41 2004 +0000 (2004-11-02)
parents eb0280fe0abf
children e2bc06051a02
files .rootkeys Makefile docs/Makefile install.sh
line diff
     1.1 --- a/.rootkeys	Tue Nov 02 17:20:14 2004 +0000
     1.2 +++ b/.rootkeys	Tue Nov 02 17:57:41 2004 +0000
     1.3 @@ -37,6 +37,7 @@ 3f815145AYE58Kpmsj5U7oHDpVDZJA extras/mi
     1.4  3f815145CB8XdPUqsmhAjSDFuwOoqA extras/mini-os/mm.c
     1.5  3f815145vGYx1WY79voKkZB9yKwJKQ extras/mini-os/time.c
     1.6  3f815145xlKBAQmal9oces3G_Mvxqw extras/mini-os/traps.c
     1.7 +4187ca95_eQN62ugV1zliQcfzXrHnw install.sh
     1.8  3e5a4e6589G-U42lFKs43plskXoFxQ linux-2.4.27-xen-sparse/Makefile
     1.9  3e5a4e65IEPjnWPZ5w3TxS5scV8Ewg linux-2.4.27-xen-sparse/arch/xen/Makefile
    1.10  3e5a4e65n-KhsEAs-A4ULiStBp-r6w linux-2.4.27-xen-sparse/arch/xen/boot/Makefile
     2.1 --- a/Makefile	Tue Nov 02 17:20:14 2004 +0000
     2.2 +++ b/Makefile	Tue Nov 02 17:57:41 2004 +0000
     2.3 @@ -22,8 +22,8 @@ install: dist
     2.4  	$(MAKE) -C xen install
     2.5  	$(MAKE) -C tools install
     2.6  	sh ./docs/check_pkgs && $(MAKE) -C docs install
     2.7 -	$(shell cp -a install/boot/*$(LINUX_VER)* /boot/)
     2.8 -	$(shell cp -a install/lib/modules/* /lib/modules/)
     2.9 +	$(shell cp -dR install/boot/*$(LINUX_VER)* /boot/)
    2.10 +	$(shell cp -dR install/lib/modules/* /lib/modules/)
    2.11  
    2.12  # install xen and tools into the install directory
    2.13  dist: all
     3.1 --- a/docs/Makefile	Tue Nov 02 17:20:14 2004 +0000
     3.2 +++ b/docs/Makefile	Tue Nov 02 17:57:41 2004 +0000
     3.3 @@ -23,9 +23,9 @@ clean:
     3.4  
     3.5  install: all
     3.6  	mkdir -p $(prefix)/usr/share/doc/xen
     3.7 -	cp -a ps $(prefix)/usr/share/doc/xen
     3.8 -	cp -a pdf $(prefix)/usr/share/doc/xen
     3.9 -	cp -a html $(prefix)/usr/share/doc/xen
    3.10 +	cp -dR ps $(prefix)/usr/share/doc/xen
    3.11 +	cp -dR pdf $(prefix)/usr/share/doc/xen
    3.12 +	cp -dR html $(prefix)/usr/share/doc/xen
    3.13  
    3.14  pdf/%.pdf: ps/%.ps
    3.15  	mkdir -p pdf ; ps2pdf $< $@
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/install.sh	Tue Nov 02 17:57:41 2004 +0000
     4.3 @@ -0,0 +1,24 @@
     4.4 +#!/bin/sh
     4.5 +
     4.6 +if ! [ -d ./install ]; then
     4.7 +  echo "ERROR: You must build Xen before it can be installed."
     4.8 +  echo "       For example, 'make dist'."
     4.9 +  exit 1
    4.10 +fi
    4.11 +
    4.12 +prefix='/'
    4.13 +if [ $# -ne 0 ]; then 
    4.14 +  prefix=$1
    4.15 +fi
    4.16 +
    4.17 +if ! [ -d $prefix ]; then
    4.18 +  echo "ERROR: You must specify a valid install directory."
    4.19 +  echo "       The specified directory '$prefix' is not valid."
    4.20 +  exit 1
    4.21 +fi
    4.22 +
    4.23 +echo "Installing Xen to '$prefix'..."
    4.24 +cp -fdR ./install/* $prefix
    4.25 +echo "All done."
    4.26 +
    4.27 +exit 0