diff options
author | Gerald Pfeifer <gerald@pfeifer.com> | 2009-04-25 20:03:12 +0000 |
---|---|---|
committer | Gerald Pfeifer <gerald@gcc.gnu.org> | 2009-04-25 20:03:12 +0000 |
commit | 7527cf21069c863da2d7701b208cd9f134503cd9 (patch) | |
tree | 6495c7d6f7fd5073d375c712530fe1d32fe1e0d9 /contrib | |
parent | 3270032c592202a31bf10b630ee825afed62a054 (diff) | |
download | gcc-7527cf21069c863da2d7701b208cd9f134503cd9.tar.gz |
test_summary: Only include LAST_UPDATED if it exists.
* test_summary: Only include LAST_UPDATED if it exists.
Complete copyright years.
From-SVN: r146783
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 5 | ||||
-rwxr-xr-x | contrib/test_summary | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 7c97d8f9c1d..b4c315bc5df 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -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. diff --git a/contrib/test_summary b/contrib/test_summary index 98664359bc2..9bb06051efd 100755 --- a/contrib/test_summary +++ b/contrib/test_summary @@ -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); |