Skip to content

Instantly share code, notes, and snippets.

@cassiomarques
Created September 11, 2008 03:09
Show Gist options
  • Save cassiomarques/10156 to your computer and use it in GitHub Desktop.
Save cassiomarques/10156 to your computer and use it in GitHub Desktop.
#!/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