From 7ae7fa24d86a0420555c8d42f026717772161d09 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 2 Mar 2015 22:56:35 +0100 Subject: [PATCH] don't call nproc if the system doesn't have it --- s/build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/s/build b/s/build index 40ab81283..068a669a1 100755 --- a/s/build +++ b/s/build @@ -1,7 +1,7 @@ #!/bin/sh -ROOT=$(pwd) +ROOT=`pwd` while [ ! -d $ROOT/.git ]; do - ROOT=$(dirname $ROOT) + ROOT=`dirname $ROOT` done [ -z $BUILD ] && BUILD=Debug @@ -11,7 +11,7 @@ MACHINE=`uname -m` [ -z "$CC" ] && [ ! -z `which cc` ] && CC="cc" BIN_DIR="build-$MACHINE-$CC-$BUILD" -[ -z "$JOBS" ] && JOBS=$(nproc) +[ -z "$JOBS" ] && [ "" != "which nproc" ] && JOBS=`nproc` DISTCC=`which distcc` if [ ! -z "$DISTCC" ] ; then JOBS=`distcc -j`