Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : ghc-7.2

http://hackage.haskell.org/trac/ghc/changeset/6d3c7d7aac51cc5d96e3a0e34d9254fd9f33484b

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

commit 6d3c7d7aac51cc5d96e3a0e34d9254fd9f33484b
Author: Ian Lynagh <[email protected]>
Date:   Sun Jun 26 15:57:47 2011 +0100

    Check mk/validate.mk exists before we try grepping it

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

 validate |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/validate b/validate
index 0d327e8..3161c4c 100755
--- a/validate
+++ b/validate
@@ -146,7 +146,7 @@ the minimal testing procedure, please do further testing as 
necessary.
 When you are satisfied that you haven't broken anything, go ahead and
 push/send your patches.
 EOF
-        if grep -q "^[^#]" mk/validate.mk
+        if [ -f mk/validate.mk ] && grep -q "^[^#]" mk/validate.mk
         then
             cat <<EOF
 



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to