#!/bin/sh rm -rf ../results mkdir -p ../results TRY=0 FAIL=0 BURN_OPTIONS=-j4 export BURN_OPTIONS while true do echo `date` FAILED: $FAIL/$TRY find . -name "*.o" -print | xargs -r rm find . -name "core" -type f -print | xargs -r rm rm -f nohup.out vmlinux make > LOG.out 2>&1 rm -f init/version.o sort LOG.out > LOG.o N=`date +%j%H%M%S` find . -name "*.o" -o -name core -type f | sort > all W=`cat all | xargs cksum | cksum | awk '{print $1}'` if [ ! -d ../results/$W ] then mkdir ../results/$W cat all | zip -roq@ ../results/$W/$N.zip mv LOG.out ../results/$W else touch ../results/$W/$N.zip fi if [ ! -f vmlinux ] then FAIL=`expr $FAIL + 1` fi TRY=`expr $TRY + 1` done