406
424
tmp_file2 = File.join(tmp_dir, '_tmp_wrapper')
407
425
cwn = File.join(Config::CONFIG['bindir'], op_file)
408
cwv = CMD_WRAPPER.gsub('<ruby>', ruby.gsub(%r{/}) { "\\" }).gsub!('<command>', cwn.gsub(%r{/}) { "\\" } )
410
430
File.open(tmp_file2, "wb") { |cw| cw.puts cwv }
411
431
FileUtils.install(tmp_file2, File.join(target, "#{op_file}.bat"), :mode => 0755, :verbose => true)