From: Rainer Orth Date: Tue, 5 Jan 2010 18:29:48 +0000 (+0000) Subject: * dg-extract-results.sh: Don't use tail -n. X-Git-Tag: releases/gcc-4.5.0~1383 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5392f6be700ca0d15b7b6a3a9f9ebdb029247534;p=thirdparty%2Fgcc.git * dg-extract-results.sh: Don't use tail -n. From-SVN: r155655 --- diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 2dc5d3af5ade..cd6fba615261 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +2010-01-05 Rainer Orth + + * dg-extract-results.sh: Don't use tail -n. + 2009-10-03 H.J. Lu Richard Guenther diff --git a/contrib/dg-extract-results.sh b/contrib/dg-extract-results.sh index 518c19f6bee0..0014b436a780 100755 --- a/contrib/dg-extract-results.sh +++ b/contrib/dg-extract-results.sh @@ -6,7 +6,7 @@ # The resulting file can be used with test result comparison scripts for # results from tests that were run in parallel. See usage() below. -# Copyright (C) 2008, 2009 Free Software Foundation +# Copyright (C) 2008, 2009, 2010 Free Software Foundation # Contributed by Janis Johnson # # This file is part of GCC. @@ -418,6 +418,6 @@ cat ${TMP}/var-* | $AWK -f $TOTAL_AWK # This is ugly, but if there's version output from the compiler under test # at the end of the file, we want it. The other thing that might be there # is the final summary counts. -tail -n 2 $FIRST_SUM | grep -q '^#' || tail -n 2 $FIRST_SUM +tail -2 $FIRST_SUM | grep -q '^#' || tail -2 $FIRST_SUM exit 0