Sha256: c7d8a559d1fa65e66a68d70417166e83ad3b13b88556a93d9f84ead4f4361814

Contents?: true

Size: 383 Bytes

Versions: 27

Compression:

Stored size: 383 Bytes

Contents

# delete RMagick documentation created by post-setup.rb
# doc/*.rb.html
# doc/ex/* (!rb)
# Bug #246: Don't use chdir!
require 'fileutils'

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

targets = Dir['doc/ex/*']
targets.delete_if { |entry| File.directory?(entry) || %r{\.rb\z}.match(entry) }
FileUtils.safe_unlink(targets) unless targets.empty?

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
rmagick-2.13.3 post-clean.rb
rmagick-2.13.3.rc1 post-clean.rb
rmagick-2.13.2 post-clean.rb
rdp-rmagick-0.0.0 post-clean.rb
rmagick-2.13.1 post-clean.rb
rmagick-2.12.2 post-clean.rb
rmagick-2.12.1 post-clean.rb
rmagick-2.12.0 post-clean.rb
rmagick-2.11.1 post-clean.rb
rmagick-2.10.0 post-clean.rb
rmagick-2.11.0 post-clean.rb
rmagick-2.1.0 post-clean.rb
rmagick-2.2.0 post-clean.rb
rmagick-2.3.0 post-clean.rb
rmagick-2.2.2 post-clean.rb
rmagick-2.6.0 post-clean.rb
rmagick-2.4.0 post-clean.rb
rmagick-2.5.0 post-clean.rb
rmagick-2.5.1 post-clean.rb
rmagick-2.5.2 post-clean.rb