2 // Tired of chasing typos and finding them after a commit.
3 // Run this from cmdline in basedir and quickly see if we've
4 // got any parse errors in our application files.
7 error_reporting(E_ERROR | E_WARNING | E_PARSE );
8 ini_set('display_errors', '1');
9 ini_set('log_errors','0');
15 echo "Directory: mod\n";
16 $files = glob('mod/*.php');
17 foreach($files as $file) {
22 echo "Directory: include\n";
23 $files = glob('include/*.php');
24 foreach($files as $file) {
29 echo "Directory: addon\n";
30 $dirs = glob('addon/*');
32 foreach($dirs as $dir) {
33 $addon = basename($dir);
34 $files = glob($dir . '/' . $addon . '.php');
35 foreach($files as $file) {
41 if(x($a->config,'php_path'))
42 $phpath = $a->config['php_path'];
46 echo "String files\n";
48 echo 'util/strings.php' . "\n";
49 include_once('util/strings.php');
50 echo count($a->strings) . ' strings' . "\n";
52 $files = glob('view/*/strings.php');
54 foreach($files as $file) {
56 passthru($phpath . ' util/typohelper.php ' . $file);
57 // include_once($file);