let i=0 test -e gastest_pass && mv -f gastest_pass gastest_lastpass for z in `cat targets` do ( test -d $z || mkdir $z cd $z; echo "~/src/binutils-gdb/configure --build=x86_64-linux --disable-nls --enable-plugins --disable-gdb --disable-sim --disable-readline --disable-libdecnumber --enable-obsolete --target=$z" > zzz.$$ chmod 755 zzz.$$ xx=29 for x in 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 do test -f make.log$x && mv -f make.log$x make.log$xx test -f check.log$x && mv -f check.log$x check.log$xx xx=$x done if test x$1 = xfull || ! test -f zzz || ! cmp -s zzz zzz.$$; then rm -rf bfd binutils etc gas gprof intl ld libiberty opcodes Makefile config.log config.status serdep.tmp gdb sim readline libdecnumber cgen zlib mv -f zzz.$$ zzz ./zzz &> make.log0 else rm zzz.$$ ./zzz &> make.log0 fi if make &>> make.log0; then ( eval cd `sed -n -e '/\/configure/{s,/configure .*,,p;q}' check.log0 if make -k check &>> check.log0; then echo "$z OK" echo "$z OK" >> ../gastest_pass else echo "$z check" fi else echo "$z ********make" fi cd .. ) & let i++ #Don't let m68hc11-elf and m68hc12-elf write to the source at the same time. if test $i = 16 -o $z = m68hc11-elf; then let i=0 wait fi done if test $i != 0; then wait fi egrep -a '(XPASS|FAIL|ERROR|UNRESOLVED):' */check.log0 | sed -e s,/check.log0:,\ \ , > gastest_results sort < gastest_pass > gastest_$$ && mv -f gastest_$$ gastest_pass diff -u gastest_lastpass gastest_pass &> gastest_changes for z in */check.log1; do diff -u $z ${z%[0-9]}0 | sed -e s,^,${z%/*}\ \ ,; done | egrep -a ' [\+\-](XPASS|FAIL|ERROR|UNRESOLVED)' >> gastest_changes