summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-13 08:21:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-13 08:21:44 +0000
commita28e2ac46b93c9361498a0915b1616441c48bb9f (patch)
treec5dae1c828e687335c927b1d5719fd9c3bfe1d15 /tool/rbinstall.rb
parentb4089826fba2d261f7857307be50aeeb0b8adfce (diff)
rbinstall.rb: suppress warnings
* tool/rbinstall.rb (install): get rid of shadowing outer local variables. * tool/rbinstall.rb: remove unused variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 0d15a59..b658700 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -158,11 +158,11 @@ def install(src, dest, options = {})
super(src, d, options)
srcs = Array(src)
if strip
- d = srcs.map {|src| File.join(d, File.basename(src))} if $made_dirs[dest]
+ d = srcs.map {|s| File.join(d, File.basename(s))} if $made_dirs[dest]
strip_file(d)
end
if $installed_list
- dest = srcs.map {|src| File.join(dest, File.basename(src))} if $made_dirs[dest]
+ dest = srcs.map {|s| File.join(dest, File.basename(s))} if $made_dirs[dest]
$installed_list.puts dest
end
end
@@ -324,8 +324,6 @@ enable_shared = CONFIG["ENABLE_SHARED"] == 'yes'
dll = CONFIG["LIBRUBY_SO", enable_shared]
lib = CONFIG["LIBRUBY", true]
arc = CONFIG["LIBRUBY_A", true]
-major = CONFIG["MAJOR", true]
-minor = CONFIG["MINOR", true]
load_relative = configure_args.include?("--enable-load-relative")
install?(:local, :arch, :bin, :'bin-arch') do
@@ -689,7 +687,6 @@ install?(:ext, :comm, :gem) do
gems.sort.each do |name, specgen|
gemspec = specgen.gemspec
- base_dir = specgen.src.sub(/\A#{Regexp.escape(srcdir)}\//, "")
full_name = "#{gemspec.name}-#{gemspec.version}"
puts "#{" "*30}#{gemspec.name} #{gemspec.version}"