diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-23 22:40:01 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-23 22:40:01 +0000 |
commit | 99701298a9ab2f825763fa867912d4447cb0fe0a (patch) | |
tree | 1a12f19e776e11367db715f495082a2bd44a8d52 /contrib | |
parent | 5151e3fcc79fbdd2f059f15df683c220ad0cce47 (diff) | |
download | gcc-99701298a9ab2f825763fa867912d4447cb0fe0a.tar.gz |
* test_summary: find good awk (copied from warn_summary).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19992 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 7 | ||||
-rwxr-xr-x | contrib/test_summary | 14 |
2 files changed, 20 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog new file mode 100644 index 00000000000..438accad4fb --- /dev/null +++ b/contrib/ChangeLog @@ -0,0 +1,7 @@ +Sat May 23 23:38:49 1998 Matthias Klose <doko@cs.tu-berlin.de> + + * test_summary: find good awk (copied from warn_summary). + +Sat May 23 23:38:33 1998 Jeffrey A Law (law@cygnus.com) + + * test_summary, warn_summary: New files diff --git a/contrib/test_summary b/contrib/test_summary index 23e3d7e7d82..455bd998b83 100755 --- a/contrib/test_summary +++ b/contrib/test_summary @@ -31,6 +31,18 @@ # -t: prevents logs from being renamed # -m: specify the e-mail address to send notes to. An appropriate default should be selected from the log files. # -f: force reports to be mailed; if omitted, only reports that differ from the sent.* version are sent + +# Find a good awk. +if test -z "$AWK" ; then + for AWK in gawk nawk awk ; do + if type $AWK 2>&1 | grep 'not found' > /dev/null 2>&1 ; then + : + else + break + fi + done +fi + : ${filesuffix=}; export fileprefix : ${move=true}; export move : ${forcemail=false}; export forcemail @@ -63,7 +75,7 @@ for file in $files; do done && $anyfile && if $forcemail || $anychange; then :; else mailto=nobody; fi && -gawk ' +$AWK ' BEGIN { lang=""; print "cat <<EOF |"; |