stamp time of last update

Richard Henderson rth@redhat.com
Fri Jul 27 14:11:00 GMT 2001


On Fri, Jul 27, 2001 at 06:08:29AM -0000, Billinghurst, David (CRTS) wrote:
> It would be very useful to have this in the test summary posted to
> gcc-testresults

Something like this?

	cat <<'EOF' |
	LAST_UPDATED: Fri Jul 27 21:06:22 UTC 2001

	Native configuration is i686-pc-linux-gnu

(I don't think localtime is very useful going to gcc-testresults.)


r~


	* test_summary: Copy LAST_UPDATED UTC time to head of summary.

Index: contrib/test_summary
===================================================================
RCS file: /cvs/gcc/gcc/contrib/test_summary,v
retrieving revision 1.18
diff -u -p -r1.18 test_summary
--- test_summary	2001/05/28 15:50:29	1.18
+++ test_summary	2001/07/27 21:08:03
@@ -95,6 +95,12 @@ BEGIN {
 '${prepend_logs+"  system(\"cat $prepend_logs\"); "}'
 }
 $1 ~ /\/configure$/ {
+    srcdir = $1;
+    gsub(/\/configure$/, "", srcdir);
+    printf "LAST_UPDATED: ";
+    system("tail -1 " srcdir "/LAST_UPDATED");
+    print "";
+
     $1 = "configure flags:"; configflags = $0;
     gsub(/--with-gcc-version-trigger=[^ ]* /, "", configflags);
     gsub(/ --norecursion/, "", configflags)



More information about the Gcc mailing list