1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2026-01-12 22:51:27 +03:00
Files
postfixadmin/tests/simpletest/packages/transform_all_lastcraft.php
2009-03-15 21:24:56 +00:00

17 lines
522 B
PHP

<?php
$transform = $argv[1];
$source_path = $argv[2];
$destination_path = $argv[3];
$dir = opendir($source_path);
while (($file = readdir($dir)) !== false) {
if (! preg_match('/\.xml$/', $file)) {
continue;
}
$source = $source_path . $file;
$destination = $destination_path .
preg_replace('/\.xml$/', '.php', basename($source));
$command = "Xalan -o $destination $source $transform\n";
`$command`;
}
closedir($dir);
?>