summaryrefslogtreecommitdiff
path: root/contrib/test_summary
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-09 05:12:51 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-09 05:12:51 +0000
commit6c5605c22ee7fc8f23ac6ec0b5bc842e55258a0d (patch)
treed05f5b9e179ed8f8b21b4715a7645873eef61f5c /contrib/test_summary
parent2b1913702288caed3a2d800244de6ea850b30905 (diff)
downloadgcc-6c5605c22ee7fc8f23ac6ec0b5bc842e55258a0d.tar.gz
* test_summary: AWK breaks with filenames containing `='.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35578 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/test_summary')
-rwxr-xr-xcontrib/test_summary6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/test_summary b/contrib/test_summary
index ad08c897566..0fcf3ec7d4e 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 &&"