From: gerald Date: Sat, 25 Apr 2009 20:03:12 +0000 (+0000) Subject: * test_summary: Only include LAST_UPDATED if it exists. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e30bc1556568e41c6dc78d8f2eaa498e67535b0;p=thirdparty%2Fgcc.git * test_summary: Only include LAST_UPDATED if it exists. Complete copyright years. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146783 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 7c97d8f9c1d3..b4c315bc5dff 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,8 @@ +2009-04-25 Gerald Pfeifer + + * test_summary: Only include LAST_UPDATED if it exists. + Complete copyright years. + 2009-04-16 Paolo Bonzini * compare-all-tests: New. diff --git a/contrib/test_summary b/contrib/test_summary index 98664359bc2e..9bb06051efd0 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 # 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);