added: ability to specify the number of threads used for make check-commits(-all)

use CHECK_THREADS=n

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@2016 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
akva
2012-10-19 15:20:26 +00:00
committed by Knut Morten Okstad
parent 866c8fa92d
commit f1752c958a

View File

@@ -35,7 +35,9 @@ Build() {
cd $1
cmake $3
fi
if ! make -j3
threads=$CHECK_THREADS
test -z $thread && threads=3
if ! make -j$threads
then
globres=1
return