diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2000-08-09 05:12:51 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-08-09 05:12:51 +0000 |
commit | e50d29325290fcdeb23a690511ae61c9e89802f1 (patch) | |
tree | d05f5b9e179ed8f8b21b4715a7645873eef61f5c | |
parent | 1fcbbcd34f1442d90984f790d44a402f934e035c (diff) | |
download | gcc-e50d29325290fcdeb23a690511ae61c9e89802f1.zip gcc-e50d29325290fcdeb23a690511ae61c9e89802f1.tar.gz gcc-e50d29325290fcdeb23a690511ae61c9e89802f1.tar.bz2 |
* test_summary: AWK breaks with filenames containing `='.
From-SVN: r35578
-rw-r--r-- | contrib/ChangeLog | 4 | ||||
-rwxr-xr-x | contrib/test_summary | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 0a93490..c2a711d 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +2000-08-09 Alexandre Oliva <aoliva@redhat.com> + + * test_summary: AWK breaks with filenames containing `='. + Sun Jul 16 12:04:33 2000 Mark P Mitchell <mark@codesourcery.com> * gcc_build: New script. diff --git a/contrib/test_summary b/contrib/test_summary index ad08c89..0fcf3ec 100755 --- a/contrib/test_summary +++ b/contrib/test_summary @@ -82,6 +82,10 @@ for file in $files; do done && $anyfile && if $forcemail || $anychange; then :; else mailto=nobody; fi && +# We use cat instead of listing the files as arguments to AWK because +# GNU awk 3.0.0 would break if any of the filenames contained `=' and +# was preceded by an invalid ``variable'' name. +cat ./config.status $files | $AWK ' BEGIN { lang=""; @@ -122,7 +126,7 @@ END { if (lang != "") { print "Mail -s \"Results for " prefix version lang "testsuite on " host "\" '"${mailto}"' &&"; }} { next; } -' ./config.status $files | sed "s/\([\`\$\\\\]\)/\\\\\\1/g" && +' | sed "s/\([\`\$\\\\]\)/\\\\\\1/g" && if $move; then for file in $files `ls -1 $files | sed s/sum$/log/`; do [ -f $file ] && echo "mv `pwd`/$file `pwd`/$file.sent &&" |