robustify the test for the top of the tree a little
authorSimon Marlow <simonmar@microsoft.com>
Mon, 10 Apr 2006 08:22:24 +0000 (08:22 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Mon, 10 Apr 2006 08:22:24 +0000 (08:22 +0000)
darcs-all

index aecf634..0dd9145 100644 (file)
--- a/darcs-all
+++ b/darcs-all
@@ -63,7 +63,7 @@ function darcsget()
   done
 }
 
-if test ! -d _darcs; then
+if test ! -d _darcs -o ! -d compiler; then
   echo "error: darcs-all must be run from the top level of the ghc tree."
   exit 1;
 fi