ia64/xen-unstable

view netbsd-2.0-xen-sparse/nbconfig-xen @ 4146:f2d61710e4d9

bitkeeper revision 1.1236.25.24 (42366e9aQ71LQ8uCB-Y1IwVNqx5eqA)

Merge djm@kirby.fc.hp.com://home/djm/src/xen/xeno-unstable-ia64.bk
into sportsman.spdomain:/home/djm/xeno-unstable-ia64.bk
author djm@sportsman.spdomain
date Tue Mar 15 05:11:54 2005 +0000 (2005-03-15)
parents 0a4b76b6b5a0
children
line source
1 #! /bin/sh
2 #
4 : ${HOS:=$(uname -s | tr /A-Z/ /a-z/)}
5 : ${HARCH:=$(uname -m 2>/dev/null || echo i386)}
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 case "$HARCH" in
11 i586|i686)
12 HARCH=i386
13 ;;
14 esac
16 TOOLDIR="$TOPDIR/../netbsd-${NETBSD_RELEASE}-tools/$HOS-$HARCH"; export TOOLDIR
18 CONF="$1"
19 case "$1" in
20 /*)
21 CONF="$1"
22 ;;
23 *)
24 CONF="$TOPDIR"/sys/arch/xen/conf/"$1"
25 ;;
26 esac
27 exec "${TOOLDIR}/bin/nbconfig" -b $(pwd) -s "$TOPDIR"/sys "$CONF"