diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-06 01:49:30 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-06 01:49:30 +0900 |
commit | 15a963a3e41ae7319ef67c6098503b6a0b65a66c (patch) | |
tree | afa2b0ab08bb8269536afe328f19e9528c5e6c6d | |
parent | f612778a4c180e876acc0122b02c3ffef93e42bf (diff) | |
download | poe-15a963a3e41ae7319ef67c6098503b6a0b65a66c.tar.gz |
rakefile: No newline at end of file を回避する
-rw-r--r-- | Rakefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -20,7 +20,7 @@ def add_compiler(lang, id, val) list = $tmp_config["compilers"][lang] || {} list[id] = val $tmp_config["compilers"][lang] = list.sort.reverse.to_h - File.write($config_file, JSON.pretty_generate($tmp_config)) + File.write($config_file, JSON.pretty_generate($tmp_config) + "\n") end def retriable @@ -88,8 +88,8 @@ namespace :compiler do } add_compiler("ruby", id, { - version_command: "#{prefix}/bin/ruby -v", version: `LD_LIBRARY_PATH=#{destdir}#{prefix}/lib #{destdir}#{prefix}/bin/ruby -v`.lines.first.chomp, + version_command: "#{prefix}/bin/ruby -v", commandline: ["#{prefix}/bin/ruby", "{}"] }) } @@ -124,8 +124,8 @@ namespace :compiler do } add_compiler("php", id, { - version_command: "#{prefix}/bin/php -v", version: `LD_LIBRARY_PATH=#{destdir}#{prefix}/lib #{destdir}#{prefix}/bin/php -v`.lines.first.chomp, + version_command: "#{prefix}/bin/php -v", commandline: ["#{prefix}/bin/php", "{}"] }) } |