33 lines
899 B
Text
33 lines
899 B
Text
$NetBSD: patch-aa,v 1.2 2013/07/21 02:49:58 taca Exp $
|
|
|
|
* Avoid to use "ftools" which has deprecated in ruby19.
|
|
* Use RbConfig instead of Config.
|
|
|
|
--- install.rb.orig 2003-08-13 15:18:29.000000000 +0000
|
|
+++ install.rb
|
|
@@ -1,8 +1,8 @@
|
|
require 'rbconfig'
|
|
require 'find'
|
|
-require 'ftools'
|
|
+require 'fileutils'
|
|
|
|
-include Config
|
|
+include RbConfig
|
|
|
|
$srcdir = CONFIG["srcdir"]
|
|
$version = CONFIG["MAJOR"]+"."+CONFIG["MINOR"]
|
|
@@ -30,12 +30,12 @@ def install_rb(srcdir = nil, destdir = $
|
|
for f in dir
|
|
next if f == "."
|
|
next if f == "CVS"
|
|
- File::makedirs(File.join(destdir, f))
|
|
+ FileUtils::mkdir_p(File.join(destdir, f))
|
|
end
|
|
for f in path
|
|
next if (/\~$/ =~ f)
|
|
next if (/^\./ =~ File.basename(f))
|
|
- File::install(File.join("lib", f), File.join(destdir, f), 0644, true)
|
|
+ FileUtils::install(File.join("lib", f), File.join(destdir, f), :mode => 0644)
|
|
end
|
|
end
|
|
|