/ Published in: Perl
Can be used on any machine with PERL installed. Just execute this script in the directory and it will remove .svn folders recursively
Expand |
Embed | Plain Text
#!/usr/bin/perl sub cleanup { local *DIR; next if /^\.{1,2}$/; my $path = "$dir/$_"; cleanup($path) if -d $path; } closedir DIR; rmdir $dir; return true; } sub cleansvn { cleanup ("$dir/.svn"); local *DIR; next if /^\.{1,2}$/; my $path = "$dir/$_"; cleansvn($path) if -d $path; } closedir DIR; } cleansvn(".");
You need to login to post a comment.
