+ add the convert tools for opt to ext.

This commit is contained in:
wangchunsheng
2011-03-08 14:17:46 +00:00
parent c36664a371
commit a556e655b7
+18
View File
@@ -0,0 +1,18 @@
<?php
/**
* This file is used to convert the old opt directory to ext.
*/
$modules = glob('../module/*');
foreach($modules as $module)
{
$modulePath = realpath($module) . '/';
$moduleOpt = $modulePath . 'opt';
$moduleExt = $modulePath . 'ext';
if(file_exists($moduleOpt))
{
echo "Processing $module ... ";
$result = @rename($moduleOpt, $moduleExt);
print($result ? ' done' : ' fail');
echo "\n";
}
}