mirror of
https://github.com/php-win-ext/phpy.git
synced 2026-03-24 08:52:08 +01:00
23 lines
513 B
PHP
23 lines
513 B
PHP
#!/usr/bin/env php
|
|
<?php
|
|
require dirname(__DIR__) . '/vendor/autoload.php';
|
|
|
|
use PhpyTool\Generator;
|
|
|
|
$extensions = get_loaded_extensions();
|
|
|
|
//$extensions = ['redis'];
|
|
|
|
Generator::$rootDir = dirname(__DIR__) . '/lib/php';
|
|
|
|
$rmAll = 'rm -rf ' . Generator::$rootDir . '/*.py';
|
|
shell_exec($rmAll);
|
|
|
|
foreach ($extensions as $extension) {
|
|
if (strtolower($extension) === 'phpy') {
|
|
continue;
|
|
}
|
|
Generator::make($extension);
|
|
echo "IDE help files for ext-{$extension} generated successfully.\n";
|
|
}
|