1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash . "defines.sh" [ $MTHREADS == 0 ] && MTHREADS=`grep -c ^processor /proc/cpuinfo` && MTHREADS=$(($MTHREADS + 2)) echo "Using $MTHREADS threads" CWD=$(pwd) cd $BUILDPATH time make -j $MTHREADS make -j $MTHREADS install cd $CWD