test_summary: Only include LAST_UPDATED if it exists.
authorGerald Pfeifer <gerald@pfeifer.com>
Sat, 25 Apr 2009 20:03:12 +0000 (20:03 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Sat, 25 Apr 2009 20:03:12 +0000 (20:03 +0000)
* test_summary: Only include LAST_UPDATED if it exists.
Complete copyright years.

From-SVN: r146783

contrib/ChangeLog
contrib/test_summary

index 7c97d8f9c1d324c8734c4e0fe100ecb3cb7d22a5..b4c315bc5dff6d1d2d1e6a52fbc899603e0fbbad 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-25  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * test_summary: Only include LAST_UPDATED if it exists.
+       Complete copyright years.
+
 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
 
        * compare-all-tests: New.
index 98664359bc2e5b93a0ff9c8b126d8f416d8335c4..9bb06051efd062c98b127eb018cacbd816f038e9 100755 (executable)
@@ -1,6 +1,7 @@
 #! /bin/sh
 
-# (C) 1998, 1999, 2000, 2002 Free Software Foundation
+# (C) 1998, 1999, 2000, 2002, 2003, 2004, 2007, 2009
+# Free Software Foundation
 # Originally by Alexandre Oliva <oliva@dcc.unicamp.br>
 
 # This script is Free Software, and it can be copied, distributed and
@@ -106,9 +107,11 @@ configflags == "" {
     sub(/^s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,/, "", configflags);
     srcdir = configflags;
     sub(/\/configure .*/, "", srcdir);
-    printf "LAST_UPDATED: ";
-    system("tail -1 " srcdir "/LAST_UPDATED");
-    print "";
+    if ( system("test -f " srcdir "/LAST_UPDATED") == 0 ) {
+        printf "LAST_UPDATED: ";
+        system("tail -1 " srcdir "/LAST_UPDATED");
+        print "";
+    }
 
     sub(/^[^ ]*\/configure */, " ", configflags);
     sub(/,;t t $/, " ", configflags);