diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-05-15 17:46:18 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:20:52 +0900 |
| commit | 6128ae61a81d12892eac5397af74e4ce6ab99b06 (patch) | |
| tree | 8a542ad37de9fe67db1e694c21f4e7ea373321c9 /Rakefile | |
| parent | e3e559696027b7c65fa27b26223c6aabd08faa76 (diff) | |
| download | mruby-6128ae61a81d12892eac5397af74e4ce6ab99b06.tar.gz mruby-6128ae61a81d12892eac5397af74e4ce6ab99b06.zip | |
Simplified `Rakefile`.
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -132,19 +132,13 @@ file presym_file => cfiles+rbfiles do symbols = (csymbols+rbsymbols).flatten.uniq.sort presyms = File.readlines(presym_file, chomp: true) rescue [] if presyms != symbols - rm_f presym_file - File.open(presym_file, "w") do |f| - symbols.each do|line| - f.puts line - end - end + File.write(presym_file, symbols.join("\n")) end end presym_inc=presym_file+".inc" file presym_inc => presym_file do presyms = File.readlines(presym_file, chomp: true) - rm_f presym_inc File.open(presym_inc, "w") do |f| op_table = { "!" => "not", |
