7 echo '-j jobs to be handled'
8 echo 'default to ' ${jarg}
9 echo '---------------------'
14 NC='\033[0m' # No Color
15 while getopts "cuj:" option
27 echo -e "${RED}number expected for jobs${NC}; default value used."
39 jarg=`sysctl -n hw.ncpu`
49 if [ ${UPDATE:=-0} -eq 1 ]; then
52 [ ${?} == 1 ] && exit 1
56 if [ ${CLEANING:=-0} -eq 1 ]; then
58 chflags -R noschg /usr/obj/* && sync && rm -rf /usr/obj && sync
61 echo building process on ${jarg} jobs
62 cd /usr/src && make -j${jarg} buildworld && make -j${jarg} kernel KERNCONF=PEPINS \
63 && echo "Reboot the system."