Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use fileutils, ftools is deprecated

  • Loading branch information...
commit 113c7081a7f0ea05f5db7718c5161eb93b988f81 1 parent a0c403e
Jason Roelofs authored
Showing with 5 additions and 5 deletions.
  1. +3 −3 post-autoconf.rb
  2. +2 −2 post-automake.rb
View
6 post-autoconf.rb
@@ -1,4 +1,4 @@
-require 'ftools'
+require 'fileutils'
require 'find'
def process(file)
@@ -10,7 +10,7 @@ def process(file)
end
end
end
- File.mv("#{file}.pp", "#{file}")
+ FileUtils.mv("#{file}.pp", "#{file}")
end
process("configure") do |out, line|
@@ -19,4 +19,4 @@ def process(file)
line.gsub!(/([^"'])(\$am_aux_dir)/, '\1\"\2\"')
out.puts line
end
-File.chmod(0700, "configure")
+FileUtils.chmod(0700, "configure")
View
4 post-automake.rb
@@ -1,4 +1,4 @@
-require 'ftools'
+require 'fileutils'
require 'find'
def process(file)
@@ -10,7 +10,7 @@ def process(file)
end
end
end
- File.mv("#{file}.pp", "#{file}")
+ FileUtils.mv("#{file}.pp", "#{file}")
end
Find.find(".") do |file|
Please sign in to comment.
Something went wrong with that request. Please try again.