Commit e50d2932 by Alexandre Oliva Committed by Alexandre Oliva

* test_summary: AWK breaks with filenames containing `='.

From-SVN: r35578
parent 1fcbbcd3
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> Sun Jul 16 12:04:33 2000 Mark P Mitchell <mark@codesourcery.com>
* gcc_build: New script. * gcc_build: New script.
......
...@@ -82,6 +82,10 @@ for file in $files; do ...@@ -82,6 +82,10 @@ for file in $files; do
done && done &&
$anyfile && $anyfile &&
if $forcemail || $anychange; then :; else mailto=nobody; fi && 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 ' $AWK '
BEGIN { BEGIN {
lang=""; lang="";
...@@ -122,7 +126,7 @@ END { if (lang != "") { ...@@ -122,7 +126,7 @@ END { if (lang != "") {
print "Mail -s \"Results for " prefix version lang "testsuite on " host "\" '"${mailto}"' &&"; print "Mail -s \"Results for " prefix version lang "testsuite on " host "\" '"${mailto}"' &&";
}} }}
{ next; } { next; }
' ./config.status $files | sed "s/\([\`\$\\\\]\)/\\\\\\1/g" && ' | sed "s/\([\`\$\\\\]\)/\\\\\\1/g" &&
if $move; then if $move; then
for file in $files `ls -1 $files | sed s/sum$/log/`; do for file in $files `ls -1 $files | sed s/sum$/log/`; do
[ -f $file ] && echo "mv `pwd`/$file `pwd`/$file.sent &&" [ -f $file ] && echo "mv `pwd`/$file `pwd`/$file.sent &&"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment