fixed -o option
This commit is contained in:
parent
55700ff584
commit
8c948bbb95
@ -90,7 +90,7 @@ Dir.mkdir output_dir if !File.directory?(output_dir)
|
|||||||
# Run each file through Rocco and write output.
|
# Run each file through Rocco and write output.
|
||||||
sources.each do |filename|
|
sources.each do |filename|
|
||||||
rocco = Rocco.new(filename, sources, options)
|
rocco = Rocco.new(filename, sources, options)
|
||||||
dest = filename.split('.')[0..-2].join('.') + '.html'
|
dest = "#{output_dir}/#{filename.scan(/(.*\/)?(.*)\.[^\.]+/)[0][1]}.html"
|
||||||
puts "rocco: #{filename} -> #{dest}"
|
puts "rocco: #{filename} -> #{dest}"
|
||||||
File.open(dest, 'wb') { |fd| fd.write(rocco.to_html) }
|
File.open(dest, 'wb') { |fd| fd.write(rocco.to_html) }
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user