#!/bin/sh broot=/usr/build if [ $# -lt 2 ]; then echo "Usage: $(basename $0) []" echo "" echo " may be null." exit 1 fi if [ '!' -x build.sh ]; then echo "ERROR: $(basename $0) should be run from top-level dir of source tree." 1>&2 exit 1 fi arch=$1 sufx=$2 shift 2 test -d ${broot}/obj/${arch}${sufx} || mkdir -p ${broot}/obj/${arch}${sufx} test -d ${broot}/tools${sufx} || mkdir -p ${broot}/tools${sufx} exec ./build.sh -M ${broot}/obj/${arch}${sufx} \ -T ${broot}/tools${sufx} -D ${broot}/d.${arch}${sufx} -R ${broot}/r.${arch}${sufx} \ -w ${HOME}/bin/noarch/nbmake-${arch}${sufx} -m ${arch} \ -N 1 -o -u -U -x "$@"