This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: contrib/test_summary
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 10 Jan 2003 15:13:53 -0600 (CST)
- Subject: PATCH: contrib/test_summary
- Reply-to: rittle at labs dot mot dot com
Applied as obvious to mainline. Looking at awk/nawk on Solaris and
FreeBSD4, I see the following (prepatched) is non-portable in practice.
* test_summary (configflags): awk portability.
Index: contrib/test_summary
===================================================================
RCS file: /cvs/gcc/gcc/contrib/test_summary,v
retrieving revision 1.22
diff -c -r1.22 test_summary
*** contrib/test_summary 7 Jan 2003 11:56:25 -0000 1.22
--- contrib/test_summary 10 Jan 2003 20:57:20 -0000
***************
*** 94,100 ****
print "cat <<'"'"'EOF'"'"' |";
'${prepend_logs+" system(\"cat $prepend_logs\"); "}'
}
! $0 ~ /^(|# )[^ ]*\/configure / {
configflags = $0 " ";
gsub(/^# /, "", configflags);
srcdir = configflags;
--- 94,100 ----
print "cat <<'"'"'EOF'"'"' |";
'${prepend_logs+" system(\"cat $prepend_logs\"); "}'
}
! $0 ~ /^[^ ]*\/configure / || $0 ~ /^# [^ ]*\/configure / {
configflags = $0 " ";
gsub(/^# /, "", configflags);
srcdir = configflags;