Skip to content
Newer
Older
100644 14 lines (11 sloc) 365 Bytes
d9b079a Initial revision
tim authored Jul 1, 2003
1 # delete RMagick documentation created by post-setup.rb
2 # doc/*.rb.html
3 # doc/ex/* (!rb)
4 require 'ftools'
5
aaa434a Simplify.
tim authored Jul 10, 2003
6 Dir.chdir('doc')
7 targets = Dir['*.rb.html']
c074ee5 Clean re-write
tim authored Jul 6, 2003
8 File.safe_unlink(*targets) unless targets.empty?
9
aaa434a Simplify.
tim authored Jul 10, 2003
10 Dir.chdir('ex')
11 targets = Dir['*']
12 targets.delete_if { |entry| File.directory?(entry) || %r{\.rb\z}.match(entry) }
c074ee5 Clean re-write
tim authored Jul 6, 2003
13 File.safe_unlink(*targets) unless targets.empty?
Something went wrong with that request. Please try again.