direct-io.hg

annotate netbsd-2.0-xen-sparse/nbconfig-xen @ 7504:3843e518e092

Use standard int typedefs.

Signed-off-by: John Levon <levon@movementarian.org>
author kaf24@firebug.cl.cam.ac.uk
date Thu Oct 27 17:16:12 2005 +0100 (2005-10-27)
parents 0a4b76b6b5a0
children
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@3198 5 : ${HARCH:=$(uname -m 2>/dev/null || echo i386)}
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@2512 8 : ${TOPDIR:=$(cd $(dirname $0) && pwd | sed 's/\(netbsd-[0-9]\+\.[0-9]\+.*-xen[^/]*\)/\1/')}
cl349@2443 9
cl349@3198 10 case "$HARCH" in
cl349@3198 11 i586|i686)
cl349@3198 12 HARCH=i386
cl349@3198 13 ;;
cl349@3198 14 esac
cl349@3198 15
cl349@2443 16 TOOLDIR="$TOPDIR/../netbsd-${NETBSD_RELEASE}-tools/$HOS-$HARCH"; export TOOLDIR
cl349@2443 17
cl349@2443 18 CONF="$1"
cl349@2443 19 case "$1" in
cl349@2443 20 /*)
cl349@2443 21 CONF="$1"
cl349@2443 22 ;;
cl349@2443 23 *)
cl349@2443 24 CONF="$TOPDIR"/sys/arch/xen/conf/"$1"
cl349@2443 25 ;;
cl349@2443 26 esac
cl349@2443 27 exec "${TOOLDIR}/bin/nbconfig" -b $(pwd) -s "$TOPDIR"/sys "$CONF"