+#!/usr/bin/env php
<?php
// Tired of chasing typos and finding them after a commit.
$phpath = 'php';
}
+echo 'Directory: src' . PHP_EOL;
+$Iterator = new RecursiveDirectoryIterator('src');
+
+foreach (new RecursiveIteratorIterator($Iterator) as $file) {
+ if (substr($file, -4) === '.php') {
+ passthru("$phpath -l $file", $ret);
+ $ret === 0 or die();
+ }
+}
+
echo "Directory: mod\n";
$files = glob('mod/*.php');
foreach ($files as $file) {
}
}
-
echo "String files\n";
echo 'util/strings.php' . "\n";