From 87b513dd0323a3345a6f2e86a49bbca316c9b3bb Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 3 May 2017 23:04:14 -0400 Subject: [PATCH] Check src folder in util/typo.php + make it executable --- util/typo.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) mode change 100644 => 100755 util/typo.php diff --git a/util/typo.php b/util/typo.php old mode 100644 new mode 100755 index 522fe4100..1b84181db --- a/util/typo.php +++ b/util/typo.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php config, 'php_path')) { $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) { @@ -53,7 +64,6 @@ foreach ($dirs as $dir) { } } - echo "String files\n"; echo 'util/strings.php' . "\n";