Changes for Root6 (Mikolaj)
[u/mrichter/AliRoot.git] / cmake / PARfiles / BUILD.sh.in
CommitLineData
b24da1d3 1#!/bin/sh
8409a855 2
3# Automatically generated BUILD.sh for @PARMODULE@
4
aef40ef4 5npar=`grep -c bogomips /proc/cpuinfo 2> /dev/null || echo 0`
8409a855 6if [ "$npar" == 0 ] ; then
7 npar=`sysctl hw.ncpu | cut -b10 2> /dev/null`
8fi
9if test "$npar" -gt 0 2> /dev/null ; then
10 let npar++
11 echo "Building PARfile using $npar parallel thread(s)"
12 exec make -j$npar
13else
14 echo "Building PARfile"
15 exec make
16fi