def copy_static
return if @options.static_path.empty?
fu_options = { :verbose => $DEBUG_RDOC, :noop => @options.dry_run }
@options.static_path.each do |path|
unless File.directory? path then
FileUtils.install path, @outputdir, fu_options.merge(:mode => 0644)
next
end
Dir.chdir path do
Dir[File.join('**', '*')].each do |entry|
dest_file = @outputdir + entry
if File.directory? entry then
FileUtils.mkdir_p entry, fu_options
else
FileUtils.install entry, dest_file, fu_options.merge(:mode => 0644)
end
end
end
end
end