direct-io.hg

annotate netbsd-2.0-xen-sparse/nbconfig-xen @ 3198:b8428734f8c7

bitkeeper revision 1.1159.187.34 (41ab39fcX9O7MQ23ZZswDbS6Tx80Sw)

Use uname -m instead of uname -i to get the build hosts architecture.
author cl349@arcadians.cl.cam.ac.uk
date Mon Nov 29 15:02:20 2004 +0000 (2004-11-29)
parents 3500fed096b1
children 2e64fe4ea360
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"