#! /bin/bash # do N (def. 10) make randconfig builds numbuilds=${1:-10} mkdir -p X64 if [ -e /usr/bin/nice ]; then NICE="/usr/bin/nice -n 10" elif [ -e /bin/nice ]; then NICE="/bin/nice -n 10" else NICE="nice -n 10" fi for n in `seq 1 $numbuilds` ; do make ARCH=x86_64 O=X64 randconfig RANDID=`cat /home/$USER/doc/RANDID` if [ $RANDID -lt 1000 ]; then RANDID=10000 fi echo $((RANDID + 1)) >/home/$USER/doc/RANDID setkconfigs.sh X64 && make ARCH=x86_64 O=X64 oldconfig cp -a X64/.config X64/config-r$RANDID LC_ALL=C $NICE make ARCH=x86_64 O=X64 -j4 all 2>&1 | tee X64/build-r$RANDID.out make O=X64 clean do_bell done