Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (28 sloc) 1003 Bytes
* Fixes the svn:externals property for the packages-all directory
* Gets the list of all packages in
* and uses that to update the svn:externals property of
* @author Daniel Convissor <>
// Get packages.
$result = `svn list`;
$result = trim($result);
$result = str_replace('/', '', $result);
$packages = preg_split('/[\r\n]+/', $result);
$ignore = array('AllTests.php', 'PEAR', 'installphars');
$packages = array_diff($packages, $ignore);
$out = '';
foreach ($packages as $package) {
$out .= "$package/trunk $package\n";
file_put_contents('./propfix.txt', $out);
echo <<<EOF
Now issue the following commands:
svn up packages-all --depth empty
svn propset svn:externals packages-all -F propfix.txt
svn commit -m 'The latest externals.' packages-all
Jump to Line
Something went wrong with that request. Please try again.