|
@@ -93,6 +93,8 @@ function run(string $base, array $dirs, string $filename, array $ignore)
|
93
|
93
|
include 'tmp_' . $filename;
|
94
|
94
|
ob_end_clean();
|
95
|
95
|
rename('tmp_' . $filename, $filename);
|
|
96
|
+ $data = substr($data, 0, strrpos($data, "\n// file: src/index.php"));
|
|
97
|
+ file_put_contents(str_replace('.php', '.include.php', $filename), $data);
|
96
|
98
|
$end = microtime(true);
|
97
|
99
|
$time = ($end - $start) * 1000;
|
98
|
100
|
echo sprintf("%d files combined in %d ms into '%s'\n", $count, $time, $filename);
|