direct-io.hg
annotate install.sh @ 6467:f509c7303954
This patch export symbols in xenbus that is used by netfront
and blkfront so that vbd and vnif can be made to modules.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
and blkfront so that vbd and vnif can be made to modules.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Tue Aug 30 09:46:33 2005 +0000 (2005-08-30) |
parents | cff6a5c4f4b6 |
children | 409cea2432fc |
rev | line source |
---|---|
kaf24@2828 | 1 #!/bin/sh |
kaf24@2828 | 2 |
kaf24@2830 | 3 src='./install' |
kaf24@2830 | 4 if [ -d ./dist ]; then |
kaf24@2830 | 5 src='./dist/install' |
kaf24@2830 | 6 fi |
kaf24@2830 | 7 |
kaf24@2830 | 8 if ! [ -d $src ]; then |
kaf24@2830 | 9 echo "ERROR: Could not find a valid distribution directory." |
kaf24@2830 | 10 echo " If this is a source-only release, try 'make dist'." |
kaf24@2828 | 11 exit 1 |
kaf24@2828 | 12 fi |
kaf24@2828 | 13 |
kaf24@2830 | 14 dst='/' |
kaf24@2828 | 15 if [ $# -ne 0 ]; then |
kaf24@2830 | 16 dst=$1 |
kaf24@2828 | 17 fi |
kaf24@2828 | 18 |
kaf24@2830 | 19 if ! [ -d $dst ]; then |
kaf24@2828 | 20 echo "ERROR: You must specify a valid install directory." |
kaf24@2830 | 21 echo " The specified directory '$dst' is not valid." |
kaf24@2828 | 22 exit 1 |
kaf24@2828 | 23 fi |
kaf24@2828 | 24 |
kaf24@2830 | 25 echo "Installing Xen from '$src' to '$dst'..." |
iap10@5080 | 26 (cd $src; tar -cf - --exclude etc/init.d * ) | tar -C $dst -xf - |
iap10@5080 | 27 cp -fdRL $src/etc/init.d/* $dst/etc/init.d/ |
kaf24@2828 | 28 echo "All done." |
kaf24@2828 | 29 |
iap10@2895 | 30 echo "Checking to see whether prerequisite tools are installed..." |
iap10@2895 | 31 cd $src/../check |
iap10@2895 | 32 ./chk install |
iap10@2895 | 33 echo "All done." |
iap10@2895 | 34 |
kaf24@2828 | 35 exit 0 |