ia64/xen-unstable

view freebsd-5.3-xen-sparse/fbsdxensetup @ 6386:a3822cb3b2b3

Fix the exception thrown when doing, for example, "xm domid" on a non-existent domain.
Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Aug 24 08:28:50 2005 +0000 (2005-08-24)
parents 1bfa723fe264
children
line source
1 #!/bin/csh -f
3 setenv XENROOT `pwd`
4 cd $XENROOT
5 if ( ! -d freebsd-5.3-xen-sparse ) then
6 echo "Please run this script from the root of the Xen source tree"
7 exit 1
8 endif
9 rm -rf $XENROOT/fbsdtmp $XENROOT/freebsd-5.3-xenU
10 mkdir -p $XENROOT/fbsdtmp
11 cd $XENROOT/fbsdtmp
12 echo "step 1"
13 wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.3-RELEASE/src/ssys.aa
14 wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.3-RELEASE/src/ssys.ab
15 wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.3-RELEASE/src/ssys.ac
16 wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.3-RELEASE/src/ssys.ad
17 wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.3-RELEASE/src/ssys.ae
18 wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.3-RELEASE/src/ssys.af
19 wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.3-RELEASE/src/ssys.ag
20 wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.3-RELEASE/src/ssys.ah
21 wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.3-RELEASE/src/ssys.ai
22 wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.3-RELEASE/src/ssys.aj
23 wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.3-RELEASE/src/ssys.ak
24 wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.3-RELEASE/src/ssys.al
25 mkdir -p foo
26 cat ssys.?? | tar --unlink -xpzf - -C foo/
27 mkdir -p $XENROOT/freebsd-5.3-xenU
28 mv foo/sys/* $XENROOT/freebsd-5.3-xenU
29 cd $XENROOT
30 rm -rf $XENROOT/fbsdtmp
31 echo "step 2"
32 mkdir -p $XENROOT/freebsd-5.3-xenU/i386-xen/include
33 cd $XENROOT/freebsd-5.3-xenU/i386-xen/include/
34 foreach file (../../i386/include/*)
35 ln -s $file
36 end
37 echo "step 3"
38 cd $XENROOT/freebsd-5.3-xen-sparse
39 echo "step 4"
40 ./mkbuildtree ../freebsd-5.3-xenU
41 echo "step 5"
42 cd $XENROOT/freebsd-5.3-xenU/i386-xen/include
43 ln -s $XENROOT/xen/include/public xen-public
44 echo "done"