summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-25 02:47:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-25 02:47:07 +0000
commitfafd4fe2349253a6a144cc81344b123ac468eca4 (patch)
tree9e063121f23d955ecf483c52e3f78b016e3832b8 /tool
parent04d026a7a7ce04b27730b92900d0660f91918bfc (diff)
downloadruby-fafd4fe2349253a6a144cc81344b123ac468eca4.tar.gz
ruby-fafd4fe2349253a6a144cc81344b123ac468eca4.tar.xz
ruby-fafd4fe2349253a6a144cc81344b123ac468eca4.zip
* tool/mkconfig.rb, tool/instruby.rb: removed redundant code.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/instruby.rb4
-rwxr-xr-xtool/mkconfig.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/tool/instruby.rb b/tool/instruby.rb
index 852a06d0f..3c277720d 100755
--- a/tool/instruby.rb
+++ b/tool/instruby.rb
@@ -4,9 +4,9 @@ load "./rbconfig.rb"
include RbConfig
$".unshift File.expand_path("./rbconfig.rb")
-srcdir = File.expand_path('..', File.dirname(__FILE__))
+srcdir = File.expand_path('../..', __FILE__)
unless defined?(CROSS_COMPILING) and CROSS_COMPILING
- $:.replace([File.expand_path("lib", srcdir), Dir.pwd])
+ $:.replace([srcdir+"/lib", Dir.pwd])
end
require 'fileutils'
require 'shellwords'
diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb
index d725fe092..116791daf 100755
--- a/tool/mkconfig.rb
+++ b/tool/mkconfig.rb
@@ -4,7 +4,7 @@
$install_name ||= nil
$so_name ||= nil
-srcdir = File.expand_path('..', File.dirname(__FILE__))
+srcdir = File.expand_path('../..', __FILE__)
$:.replace [srcdir+"/lib"] unless defined?(CROSS_COMPILING)
$:.unshift(".")