[commit: ghc] master: fix T658b/T5776 to use POSIX grep -c instead of GNU's --count (24a2e49)

git at git.haskell.org git at git.haskell.org
Thu Aug 7 07:49:13 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/24a2e49e8a96a6ef5ef19386676b9f3b7d323afd/ghc

>---------------------------------------------------------------

commit 24a2e49e8a96a6ef5ef19386676b9f3b7d323afd
Author: Karel Gardas <karel.gardas at centrum.cz>
Date:   Thu Aug 7 00:11:45 2014 +0200

    fix T658b/T5776 to use POSIX grep -c instead of GNU's --count


>---------------------------------------------------------------

24a2e49e8a96a6ef5ef19386676b9f3b7d323afd
 testsuite/tests/simplCore/should_compile/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuite/tests/simplCore/should_compile/Makefile b/testsuite/tests/simplCore/should_compile/Makefile
index ca0d552..605d3a5 100644
--- a/testsuite/tests/simplCore/should_compile/Makefile
+++ b/testsuite/tests/simplCore/should_compile/Makefile
@@ -17,12 +17,12 @@ T3055:
 
 T5658b:
 	$(RM) -f T5658b.o T5658b.hi
-	'$(TEST_HC)' $(TEST_HC_OPTS) -O -c T5658b.hs -ddump-simpl | grep --count indexIntArray
+	'$(TEST_HC)' $(TEST_HC_OPTS) -O -c T5658b.hs -ddump-simpl | grep -c indexIntArray
 # Trac 5658 meant that there were three calls to indexIntArray instead of two
 
 T5776:
 	$(RM) -f T5776.o T5776.hi
-	'$(TEST_HC)' $(TEST_HC_OPTS) -O -c T5776.hs -ddump-rules | grep --count dEq
+	'$(TEST_HC)' $(TEST_HC_OPTS) -O -c T5776.hs -ddump-rules | grep -c dEq
 
 T3772:
 	$(RM) -f T3772*.hi T3772*.o



More information about the ghc-commits mailing list