home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / rcs / sources / scriptge.awk < prev    next >
Text File  |  1990-05-07  |  265b  |  11 lines

  1. BEGIN { print "failures=0"; }
  2. !/^#/ && NF == 3 {
  3.     print "echo '" $3 "' | egrep -e '" $2 "' ";
  4.     print "if [ $? != " $1 " ]"
  5.     print "then"
  6.     printf "\techo Spencer test \\#%d failed\n", ++n
  7.     print "\tfailures=1"
  8.     print "fi"
  9. }
  10. END { print "exit $failures"; }
  11.