All pastes #408381 Raw Edit

Someone

public shellscript v1 · immutable
#408381 ·published 2007-03-24 19:58 UTC
rendered paste body
#!/bin/shbroot=/usr/buildif [ $# -lt 2 ]; then  echo "Usage: $(basename $0) <arch> <sufx> [<build.sh arguments>]"  echo ""  echo "<sufx> may be null."  exit 1fiif [ '!' -x build.sh ]; then  echo "ERROR: $(basename $0) should be run from top-level dir of source tree." 1>&2  exit 1fiarch=$1sufx=$2shift 2test -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 "$@"