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

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/c629bd1539b1865cc28ce053234595e7aeb8a5c0

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

commit c629bd1539b1865cc28ce053234595e7aeb8a5c0
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 0a0677e..32432b6 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