ia64/xen-unstable

view netbsd-2.0-xen-sparse/nbconfig-xen @ 2519:ab0042a6d724

bitkeeper revision 1.1159.1.167 (4151ef22u9Wl4yRwTMkDLTop-6XohA)

Merge ssh://xenbk@gandalf.hpl.hp.com//var/bk/xeno-unstable.bk
into labyrinth.cl.cam.ac.uk:/auto/anfs/scratch/labyrinth/iap10/xeno-clone/xeno.bk
author iap10@labyrinth.cl.cam.ac.uk
date Wed Sep 22 21:31:14 2004 +0000 (2004-09-22)
parents 309c1fb27f87 4553261ed7cb
children 076976533990 3500fed096b1
line source
1 #! /bin/sh
2 #
4 : ${HOS:=$(uname -s | tr /A-Z/ /a-z/)}
5 : ${HARCH:=$(uname -i)}
6 : ${NETBSD_RELEASE:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+\).*/\1/')}
7 : ${NETBSD_VERSION:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+.*\)-xen.*/\1/')}
8 : ${TOPDIR:=$(cd $(dirname $0) && pwd | sed 's/\(netbsd-[0-9]\+\.[0-9]\+.*-xen[^/]*\)/\1/')}
10 TOOLDIR="$TOPDIR/../netbsd-${NETBSD_RELEASE}-tools/$HOS-$HARCH"; export TOOLDIR
12 CONF="$1"
13 case "$1" in
14 /*)
15 CONF="$1"
16 ;;
17 *)
18 CONF="$TOPDIR"/sys/arch/xen/conf/"$1"
19 ;;
20 esac
21 exec "${TOOLDIR}/bin/nbconfig" -b $(pwd) -s "$TOPDIR"/sys "$CONF"