util/rake/omfgenerate.rb in alexandria-book-collection-manager-0.7.8 vs util/rake/omfgenerate.rb in alexandria-book-collection-manager-0.7.9
- old
+ new
@@ -65,10 +65,10 @@
@source_files_glob = file_glob
rule ".omf" => [".omf.in"] do |t|
path = File.join(@gnome_helpfiles_dir, @projectname,
locale_for(t.name), "#{@projectname}.xml")
- data = IO.read(t.source)
+ data = File.read(t.source)
data.sub!(/PATH_TO_DOC_FILE/, path)
puts "Generating #{t.name}..."
File.open(t.name, "w") { |io| io.puts data }
end
omf_files.each { |o| @generated_files << o }