]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* dg-extract-results.sh: Don't use tail -n.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 5 Jan 2010 18:29:48 +0000 (18:29 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 5 Jan 2010 18:29:48 +0000 (18:29 +0000)
From-SVN: r155655

contrib/ChangeLog
contrib/dg-extract-results.sh

index 2dc5d3af5ade60e56c2a81d9065890e36d40e1c8..cd6fba615261bcf03d31d2fb6439749933a695e7 100644 (file)
@@ -1,3 +1,7 @@
+2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * dg-extract-results.sh: Don't use tail -n.
+
 2009-10-03  H.J. Lu  <hongjiu.lu@intel.com>
            Richard Guenther  <rguenther@suse.de>
 
index 518c19f6bee0a9e44f594c59c029763401d3a1bb..0014b436a7806620255b191567b3b5a2ee437e52 100755 (executable)
@@ -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 <janis187@us.ibm.com>
 #
 # 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