]> Creatis software - clitk.git/blobdiff - fast_make.sh
bug was due to Qt "Focus policy"
[clitk.git] / fast_make.sh
index 9309c87faaa5dfe660dd17662685d4be2b24860e..deb86d6719df9d4812595af215fddc0c89005d09 100755 (executable)
@@ -1,8 +1,9 @@
 #!/bin/bash
 vv_dir=$(dirname $(readlink -e $(which $0)))
-echo vv directory: $vv_dir
+echo clitk3 directory: $vv_dir
 cd ${vv_dir}/build
 
+
 function handle_exit
 {
     rm mem_use 2>>/dev/null
@@ -26,7 +27,8 @@ then
    sleep 1
    make -j${cpus}
 else #use all the available computing power by default
-    cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 0 ))
+    cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 2 ))
+    echo "Building with ${cpus} cpus..."
 fi
 
 nice -n12 ionice -c3 make -j ${cpus} $@ &