]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
Expect absolute XEN_ROOT - this is more sane
authorIan Jackson <iwj@mariner.uk.xensource.com>
Wed, 2 Jul 2008 15:22:02 +0000 (16:22 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 2 Jul 2008 15:22:02 +0000 (16:22 +0100)
xen-setup

index fcc1603e3f1ec124b25ed107153a4bce8fe990ab..e80165cad391aacb0b6ffc45b2b93ce35ce4b96e 100755 (executable)
--- a/xen-setup
+++ b/xen-setup
@@ -11,11 +11,9 @@ rm -f config-host.mak
 
 target=i386-dm
 
-case "$XEN_ROOT_PARENT" in
-'')    ;;
-/*)    echo "XEN_ROOT=$XEN_ROOT_PARENT"                >>config-host.mak ;;
-*)     echo "XEN_ROOT=`pwd`/$XEN_ROOT_PARENT/.."       >>config-host.mak ;;
-esac
+if [ "x$XEN_ROOT" != x ]; then
+       echo "XEN_ROOT=$XEN_ROOT" >>config-host.mak
+fi
 
 ln -sf ../Makefile.target $target/Makefile
 ln -sf ../xen-config.mak $target/config.mak