[commit: ghc] master: Check mk/validate.mk exists before we try grepping it (c629bd1)
Ian Lynagh
igloo at earth.li
Sun Jun 26 18:48:14 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/c629bd1539b1865cc28ce053234595e7aeb8a5c0
>---------------------------------------------------------------
commit c629bd1539b1865cc28ce053234595e7aeb8a5c0
Author: Ian Lynagh <igloo at earth.li>
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
More information about the Cvs-ghc
mailing list