aboutsummaryrefslogtreecommitdiff
path: root/contrib/test_summary
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-05-23 22:40:01 +0000
committerJeffrey A Law <law@cygnus.com>1998-05-23 22:40:01 +0000
commit81899c79b55c7ca750562e277ee51e82b2b565f2 (patch)
tree1a12f19e776e11367db715f495082a2bd44a8d52 /contrib/test_summary
parent6037a076ed1e0cbf569ad6046371e18aaaff8fe3 (diff)
* test_summary: find good awk (copied from warn_summary).
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@19992 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/test_summary')
-rwxr-xr-xcontrib/test_summary14
1 files changed, 13 insertions, 1 deletions
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 |";