Fix it not to include ccan dirs without test/
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 17 Feb 2009 09:33:48 +0000 (20:03 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 17 Feb 2009 09:33:48 +0000 (20:03 +1030)
web/staticall.php

index d93a26f27ac005e048f36e05588d7f3ef76e4743..85c7fe97847e569dfb421008253758807c9a5fb9 100644 (file)
@@ -28,7 +28,7 @@ Or you can just download the <a href="ccan.tar.bz2">tarball of everything includ
 $d = dir($argv[1]);
 $modules = array();
 while (false !== ($entry = $d->read())) {
-       if ($entry[0] != '.') {
+       if ($entry[0] != '.' && is_dir($argv[1].$entry."/test")) {
                array_push($modules, $entry);
        }
 }