Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.607 kB
# delete RMagick documentation created by post-setup.rb
# doc/*.rb.html
# doc/ex/* (!rb)
require 'find'
require 'ftools'
Dir.foreach('doc') do |entry|
next if FileTest.directory? 'doc'+File::SEPARATOR+entry
next unless /\.rb\.html?/.match(entry)
# puts "deleting #{'doc'+File::SEPARATOR+entry}"
File.delete('doc'+File::SEPARATOR+entry)
end
dir = 'doc'+File::SEPARATOR+'ex'
Dir.foreach(dir) do |entry|
next if FileTest.directory? dir+File::SEPARATOR+entry
next if /\.rb?/.match(entry)
# puts "deleting #{dir+File::SEPARATOR+entry}"
File.delete(dir+File::SEPARATOR+entry)
end
Jump to Line
Something went wrong with that request. Please try again.