direct-io.hg

view netbsd-2.0-xen-sparse/nbconfig-xen @ 2443:e1636300e803

bitkeeper revision 1.1159.72.1 (413cb1f9MtRHM7cQFiJRcJ1gYUPxdw)

Add NetBSD support.
author cl349@labyrinth.cl.cam.ac.uk
date Mon Sep 06 18:52:41 2004 +0000 (2004-09-06)
parents
children 309c1fb27f87
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/')}
9 TOOLDIR="$TOPDIR/../netbsd-${NETBSD_RELEASE}-tools/$HOS-$HARCH"; export TOOLDIR
11 CONF="$1"
12 case "$1" in
13 /*)
14 CONF="$1"
15 ;;
16 *)
17 CONF="$TOPDIR"/sys/arch/xen/conf/"$1"
18 ;;
19 esac
20 exec "${TOOLDIR}/bin/nbconfig" -b $(pwd) -s "$TOPDIR"/sys "$CONF"