Tweak the HADDOCK_DOCS regex in validate
authorIan Lynagh <igloo@earth.li>
Fri, 9 Mar 2012 00:59:59 +0000 (00:59 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 9 Mar 2012 00:59:59 +0000 (00:59 +0000)
It's less precise now, but still good enough for what we need, and
this way we don't need to have literal tabs in the file.

validate

index f1ec3a1..f2822e8 100755 (executable)
--- a/validate
+++ b/validate
@@ -117,7 +117,7 @@ if [ $speed != "FAST" ]; then
     # This is a hack to make
     #     HADDOCK_DOCS = NO
     # work when validating.
-    if grep -q "^HADDOCK_DOCS[         ]*=[    ]*NO[   ]*$" mk/validate.mk
+    if grep -q "^HADDOCK_DOCS.*=.*NO" mk/validate.mk
     then
         unset WITH_HADDOCK
         DO_HADDOCK=NO