Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Delete duplicated code in ruby18 recipe
The same process is repeated at the end of the install task
  • Loading branch information
Azolo committed Dec 13, 2012
1 parent bca7b31 commit 581f788
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions recipes/interpreter/ruby18.rake
Expand Up @@ -150,13 +150,6 @@ namespace(:interpreter) do
# update file
File.open(rbconfig, 'w') { |f| f.write(contents) }

# replace the batch files with new and path-clean stubs
Dir.glob("#{package.install_target}/bin/*.bat").each do |bat|
File.open(bat, 'w') do |f|
f.write batch_stub
end
end

rbconfig = File.join(package.install_target, 'lib/ruby/1.8/i386-mingw32/rbconfig.rb')
contents = File.read(rbconfig).
gsub(/#{Regexp.escape(full_install_target)}/) { |match| "" }.
Expand Down

0 comments on commit 581f788

Please sign in to comment.