ia64/xen-unstable

view netbsd-2.0-xen-sparse/nbconfig-xen @ 2743:df9ad701dbce

bitkeeper revision 1.1159.1.282 (417e5b60oXUOPTWl81d5zD6oq1tOTQ)

Clean up docs dir layout.
author kaf24@freefall.cl.cam.ac.uk
date Tue Oct 26 14:12:48 2004 +0000 (2004-10-26)
parents ab0042a6d724
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"