Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 2bc2f49507
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (26 sloc) 1.041 kB
<?php
$result = `svn list https://svn.php.net/repository/pear/packages`;
$result = trim($result);
$result = str_replace('/', '', $result);
$packages = preg_split('/[\r\n]+/', $result);
foreach ($packages as $package) {
if ($package == 'installphars') { continue; }
if ($package == 'AllTests.php') { continue; }
$workbench = $package . "-workbench";
if (!file_exists($workbench)) {
$paths = array();
$paths[] = "mkdir ". $workbench;
$paths[] = "cd " . $workbench;
$paths[] = "git-svn-mirror init --authors=../authors.txt --from=http://svn.php.net/repository/pear/packages/" . $package . "/ --to=git@github.com:pear/" . $package . ".git";
$paths[] = "cd ..";
shell_exec(implode("&&", $paths));
}
}
foreach ($packages as $package) {
if ($package == 'installphars') { continue; }
if ($package == 'AllTests.php') { continue; }
$workbench = $package . "-workbench";
if (file_exists($workbench)) {
shell_exec("git-svn-mirror update $workbench");
}
}
Jump to Line
Something went wrong with that request. Please try again.