]> Creatis software - clitk.git/blobdiff - fast_make.sh
change 'Package' to 'package' (do not compile on certain gengetopt)
[clitk.git] / fast_make.sh
index 2007b0bec62a1dcae2a09ede2483f479a81f40f4..38d94a187816b9820e034c420a9a910976b88886 100755 (executable)
@@ -27,7 +27,7 @@ then
    sleep 1
    make -j${cpus}
 else #use all the available computing power by default
-    cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 2 ))
+    cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 0 ))
     echo "Building with ${cpus} cpus..."
 fi
 
@@ -68,5 +68,6 @@ make_pid=$(jobs -p %nice)
 #    sleep 1
 #done
 #rm memory_exhausted_lock 2>>/dev/null
+wait
 echo Done!
 echo