Revert "Fix the wrong directory host-bin to host/bin."

This reverts commit 34f82f24e9.
Ref #5282
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-01-26 21:17:28 +09:00
parent f3d5deb981
commit d4101d0a08
+1 -2
View File
@@ -7,7 +7,7 @@ MRuby::Gem::Specification.new('mruby-bin-config') do |spec|
spec.summary = "#{name} command"
if iscross
mruby_config_dir = "#{build.build_dir}/host/bin"
mruby_config_dir = "#{build.build_dir}/host-bin"
else
mruby_config_dir = "#{build.build_dir}/bin"
end
@@ -28,7 +28,6 @@ MRuby::Gem::Specification.new('mruby-bin-config') do |spec|
config = Hash[File.readlines(make_cfg).map!(&:chomp).map! {|l|
l.gsub('\\"', '"').split(' = ', 2).map! {|s| s.sub(/^(?=.)/, 'echo ')}
}]
pp config
tmplt = File.read(tmplt_path)
File.write(t.name, tmplt.gsub(/(#{Regexp.union(*config.keys)})\b/, config))
chmod(0755, t.name)