Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 13 lines (10 sloc) 0.372 kb
1 2 3 4 5 6 7 8 9 10 11 12
# delete RMagick documentation created by post-setup.rb
# doc/*.rb.html
# doc/ex/* (!rb)
# Bug #246: Don't use chdir!
require 'ftools'

targets = Dir['doc/*.rb.html']
File.safe_unlink(*targets) unless targets.empty?

targets = Dir['doc/ex/*']
targets.delete_if { |entry| File.directory?(entry) || %r{\.rb\z}.match(entry) }
File.safe_unlink(*targets) unless targets.empty?
Something went wrong with that request. Please try again.