post-automake.rb in rice-1.0.2 vs post-automake.rb in rice-1.1.0
- old
+ new
@@ -1,6 +1,6 @@
-require 'ftools'
+require 'fileutils'
require 'find'
def process(file)
puts "Post-processing #{file}"
File.open(file) do |input|
@@ -8,10 +8,10 @@
input.each_line do |line|
yield output, line
end
end
end
- File.mv("#{file}.pp", "#{file}")
+ FileUtils.mv("#{file}.pp", "#{file}")
end
Find.find(".") do |file|
if file =~ /Makefile.in$/ then
process(file) do |out, line|