direct-io.hg

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netbsd-2.0-xen-sparse/nbconfig-xen	Mon Sep 06 18:52:41 2004 +0000
     1.3 @@ -0,0 +1,20 @@
     1.4 +#! /bin/sh
     1.5 +#
     1.6 +
     1.7 +: ${HOS:=$(uname -s | tr /A-Z/ /a-z/)}
     1.8 +: ${HARCH:=$(uname -i)}
     1.9 +: ${NETBSD_RELEASE:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+\).*/\1/')}
    1.10 +: ${NETBSD_VERSION:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+.*\)-xen.*/\1/')}
    1.11 +
    1.12 +TOOLDIR="$TOPDIR/../netbsd-${NETBSD_RELEASE}-tools/$HOS-$HARCH"; export TOOLDIR
    1.13 +
    1.14 +CONF="$1"
    1.15 +case "$1" in
    1.16 +  /*)
    1.17 +    CONF="$1"
    1.18 +    ;;
    1.19 +  *)
    1.20 +    CONF="$TOPDIR"/sys/arch/xen/conf/"$1"
    1.21 +    ;;
    1.22 +esac
    1.23 +exec "${TOOLDIR}/bin/nbconfig" -b $(pwd) -s "$TOPDIR"/sys "$CONF"