1*9a7741deSElliott Hughes#! /bin/sh 2*9a7741deSElliott Hughes 3*9a7741deSElliott Hughesif [ ! -f ../a.out ] 4*9a7741deSElliott Hughesthen 5*9a7741deSElliott Hughes echo Making executable 6*9a7741deSElliott Hughes (cd .. ; make) || exit 0 7*9a7741deSElliott Hughesfi 8*9a7741deSElliott Hughes 9*9a7741deSElliott Hughesfor i in *.awk 10*9a7741deSElliott Hughesdo 11*9a7741deSElliott Hughes echo === $i 12*9a7741deSElliott Hughes OUT=${i%.awk}.OUT 13*9a7741deSElliott Hughes OK=${i%.awk}.ok 14*9a7741deSElliott Hughes OK2=${i%.awk}.ok2 15*9a7741deSElliott Hughes IN=${i%.awk}.in 16*9a7741deSElliott Hughes input= 17*9a7741deSElliott Hughes if [ -f $IN ] 18*9a7741deSElliott Hughes then 19*9a7741deSElliott Hughes input=$IN 20*9a7741deSElliott Hughes fi 21*9a7741deSElliott Hughes 22*9a7741deSElliott Hughes ../a.out -f $i $input > $OUT 2>&1 23*9a7741deSElliott Hughes if cmp -s $OK $OUT 24*9a7741deSElliott Hughes then 25*9a7741deSElliott Hughes rm -f $OUT 26*9a7741deSElliott Hughes elif [ -f $OK2 ] && cmp -s $OK2 $OUT 27*9a7741deSElliott Hughes then 28*9a7741deSElliott Hughes rm -f $OUT 29*9a7741deSElliott Hughes else 30*9a7741deSElliott Hughes echo "+++ $i failed!" 31*9a7741deSElliott Hughes fi 32*9a7741deSElliott Hughesdone 33