Created
September 11, 2008 03:09
-
-
Save cassiomarques/10156 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/ruby | |
require 'find' | |
require 'fileutils' | |
if ARGV.empty? | |
puts "passe o caminho para o projeto, sua mula!" | |
exit(1) | |
end | |
Find.find(ARGV[0]) do |f| | |
if f =~ /\.svn/ | |
puts "Removendo #{f}..." | |
FileUtils.rm_r f | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment