#! /bin/sh # $Id$ args="" if [ "$1" = "-a" ];then args="$args $1" shift fi j="" cpus="`getconf _NPROCESSORS_ONLN`" if [ -n "$cpus" ];then j="-j$[$cpus+1]" fi ( set -ex time nice make $j "$@" ) 2>&1|tee $args errs2