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`
42 usrsrc=${USRSRC:-/usr/src}
51 if [ ${UPDATE:=-0} -eq 1 ]; then
53 svnlite update ${usrsrc}
54 [ ${?} == 1 ] && exit 1
58 if [ ${CLEANING:=-0} -eq 1 ]; then
60 chflags -R noschg /usr/obj/* && sync && rm -rf /usr/obj && sync
63 echo building process on ${jarg} jobs
64 make -C ${usrsrc} -j${jarg} buildworld && make -C ${usrsrc} -j${jarg} kernel KERNCONF=PEPINS \
65 && echo "Reboot the system."