ia64/xen-unstable

view netbsd-2.0-xen-sparse/nbmake-xen @ 2519:ab0042a6d724

bitkeeper revision 1.1159.1.167 (4151ef22u9Wl4yRwTMkDLTop-6XohA)

Merge ssh://xenbk@gandalf.hpl.hp.com//var/bk/xeno-unstable.bk
into labyrinth.cl.cam.ac.uk:/auto/anfs/scratch/labyrinth/iap10/xeno-clone/xeno.bk
author iap10@labyrinth.cl.cam.ac.uk
date Wed Sep 22 21:31:14 2004 +0000 (2004-09-22)
parents 309c1fb27f87 4553261ed7cb
children 076976533990 3500fed096b1
line source
1 #! /bin/sh
2 # Set proper variables to allow easy "make" building of a NetBSD subtree.
3 # Generated from: $NetBSD: build.sh,v 1.126 2004/02/04 11:23:40 lukem Exp $
4 #
6 : ${HOS:=$(uname -s | tr /A-Z/ /a-z/)}
7 : ${HARCH:=$(uname -i)}
8 : ${NETBSD_RELEASE:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+\).*/\1/')}
9 : ${NETBSD_VERSION:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+.*\)-xen.*/\1/')}
10 : ${TOPDIR:=$(cd $(dirname $0) && pwd | sed 's/\(netbsd-[0-9]\+\.[0-9]\+.*-xen[^/]*\)/\1/')}
12 NETBSDSRCDIR="$TOPDIR"; export NETBSDSRCDIR
13 DESTDIR="$TOPDIR/root"; export DESTDIR
14 unset MAKEOBJDIRPREFIX
15 MAKEOBJDIR='${.CURDIR:C,^'"$TOPDIR,$TOPDIR/obj,}"; export MAKEOBJDIR
16 RELEASEDIR="$TOPDIR/release"; export RELEASEDIR
17 MKUNPRIVED='yes'; export MKUNPRIVED
18 MAKEVERBOSE='1'; export MAKEVERBOSE
19 LC_ALL='C'; export LC_ALL
20 TOOLDIR="$TOPDIR/../netbsd-${NETBSD_RELEASE}-tools/$HOS-$HARCH"; export TOOLDIR
21 MACHINE='i386'; export MACHINE
22 MACHINE_ARCH='i386'; export MACHINE_ARCH
23 MAKEFLAGS="-de -m $TOPDIR/share/mk MKOBJDIRS=yes"; export MAKEFLAGS
24 BUILDID="${NETBSD_RELEASE}"; export BUILDID
25 USETOOLS=yes; export USETOOLS
27 exec "${TOOLDIR}/bin/nbmake" ${1+"$@"}