aboutsummaryrefslogtreecommitdiff
path: root/contrib/test_summary
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/test_summary')
-rwxr-xr-xcontrib/test_summary11
1 files changed, 7 insertions, 4 deletions
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);