Created
November 18, 2015 11:18
-
-
Save msmuenchen/d9d1523e7b713bf7d58a to your computer and use it in GitHub Desktop.
Mass upgrade of svn repositories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//This script updates all repositories in a huge root directory to current svnformat | |
//Generate said file with find . -maxdepth 1 -type d > list | |
$repos=file("list"); | |
foreach($repos as $repo) { | |
$repo=trim($repo); | |
exec("svnadmin upgrade $repo",$out,$rc); | |
if($rc!=0) | |
echo "$repo failed\n"; | |
else | |
echo "$repo succeeded\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment