diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-26 11:35:59 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-26 11:35:59 +0900 |
| commit | 34f82f24e941f36edc8d947a8a9300631b3121ff (patch) | |
| tree | 5051055f70324347b18b37ee28493f3010af627c /mrbgems/mruby-bin-config | |
| parent | 2ddfd50df37a49d7300e947c39cb053340b14624 (diff) | |
| download | mruby-34f82f24e941f36edc8d947a8a9300631b3121ff.tar.gz mruby-34f82f24e941f36edc8d947a8a9300631b3121ff.zip | |
Fix the wrong directory `host-bin` to `host/bin`.
Where `mruby-config` command should be generated.
Diffstat (limited to 'mrbgems/mruby-bin-config')
| -rw-r--r-- | mrbgems/mruby-bin-config/mrbgem.rake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-config/mrbgem.rake b/mrbgems/mruby-bin-config/mrbgem.rake index b4c437640..9f298ea76 100644 --- a/mrbgems/mruby-bin-config/mrbgem.rake +++ b/mrbgems/mruby-bin-config/mrbgem.rake @@ -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,6 +28,7 @@ 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) |
