Recursively remove .svn folders
Can be used on any machine with PERL installed. Just execute this script in the directory and it will remove .svn folders recursively
Copy this code and paste it in your HTML
#!/usr/bin/perl
sub cleanup {
next if /^\.{1,2}$/;
my $path = "$dir/$_";
cleanup($path) if -d $path;
}
}
sub cleansvn {
cleanup ("$dir/.svn");
next if /^\.{1,2}$/;
my $path = "$dir/$_";
cleansvn($path) if -d $path;
}
}
cleansvn(".");
Report this snippet
Comments
Subscribe to comments