mrubyを超漢字で動作させる
Revisão | 0c4218b70498fd016eec916f995f28af8e9fce5b (tree) |
---|---|
Hora | 2015-11-10 01:20:09 |
Autor | Yukihiro "Matz" Matsumoto <matz@ruby...> |
Commiter | Yukihiro "Matz" Matsumoto |
Merge pull request #3007 from mruby-debian/fix/fail_to_package_build
fail to debuild
@@ -2,11 +2,21 @@ $:.unshift File.dirname(File.dirname(File.expand_path(__FILE__))) | ||
2 | 2 | require 'test/assert.rb' |
3 | 3 | |
4 | 4 | def cmd(s) |
5 | - ENV['SHELL'] ? "bin/#{s}" : "bin\\#{s}.exe" | |
5 | + case RbConfig::CONFIG['host_os'] | |
6 | + when /mswin(?!ce)|mingw|cygwin|bccwin/ | |
7 | + "bin\\#{s}.exe" | |
8 | + else | |
9 | + "bin/#{s}" | |
10 | + end | |
6 | 11 | end |
7 | 12 | |
8 | 13 | def shellquote(s) |
9 | - ENV['SHELL'] ? "'#{s}'" : "\"#{s}\"" | |
14 | + case RbConfig::CONFIG['host_os'] | |
15 | + when /mswin(?!ce)|mingw|cygwin|bccwin/ | |
16 | + "\"#{s}\"" | |
17 | + else | |
18 | + "'#{s}'" | |
19 | + end | |
10 | 20 | end |
11 | 21 | |
12 | 22 | ARGV.each do |gem| |