direct-io.hg

annotate 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
rev   line source
cl349@2443 1 #! /bin/sh
cl349@2443 2 #
cl349@2443 3
cl349@2443 4 : ${HOS:=$(uname -s | tr /A-Z/ /a-z/)}
cl349@2443 5 : ${HARCH:=$(uname -i)}
cl349@2443 6 : ${NETBSD_RELEASE:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+\).*/\1/')}
cl349@2443 7 : ${NETBSD_VERSION:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+.*\)-xen.*/\1/')}
cl349@2443 8
cl349@2443 9 TOOLDIR="$TOPDIR/../netbsd-${NETBSD_RELEASE}-tools/$HOS-$HARCH"; export TOOLDIR
cl349@2443 10
cl349@2443 11 CONF="$1"
cl349@2443 12 case "$1" in
cl349@2443 13 /*)
cl349@2443 14 CONF="$1"
cl349@2443 15 ;;
cl349@2443 16 *)
cl349@2443 17 CONF="$TOPDIR"/sys/arch/xen/conf/"$1"
cl349@2443 18 ;;
cl349@2443 19 esac
cl349@2443 20 exec "${TOOLDIR}/bin/nbconfig" -b $(pwd) -s "$TOPDIR"/sys "$CONF"