]>
Commit | Line | Data |
---|---|---|
b24da1d3 | 1 | #!/bin/sh |
8409a855 | 2 | |
3 | # Automatically generated BUILD.sh for @PARMODULE@ | |
4 | ||
aef40ef4 | 5 | npar=`grep -c bogomips /proc/cpuinfo 2> /dev/null || echo 0` |
8409a855 | 6 | if [ "$npar" == 0 ] ; then |
7 | npar=`sysctl hw.ncpu | cut -b10 2> /dev/null` | |
8 | fi | |
9 | if 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 | |
13 | else | |
14 | echo "Building PARfile" | |
15 | exec make | |
16 | fi |