Permalink
Browse files

Delete duplicated code in ruby18 recipe

The same process is repeated at the end of the install task
  • Loading branch information...
1 parent bca7b31 commit 581f788a9f1496495a517546f29bbcc3d568bbd2 @Azolo Azolo committed Dec 13, 2012
Showing with 0 additions and 7 deletions.
  1. +0 −7 recipes/interpreter/ruby18.rake
View
7 recipes/interpreter/ruby18.rake
@@ -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| "" }.

0 comments on commit 581f788

Please sign in to comment.