mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Avoid using chomp:true option to File.readlines.
The option is not available in the old version of Ruby.
This commit is contained in:
@@ -164,7 +164,8 @@ file presym_file => cfiles+rbfiles+[__FILE__] do
|
||||
src.scan(/\bdef +(\w+)/)]
|
||||
end
|
||||
symbols = (csymbols+rbsymbols+op_table.keys).flatten.compact.uniq.sort
|
||||
presyms = File.readlines(presym_file, chomp: true) rescue []
|
||||
presyms = File.readlines(presym_file) rescue []
|
||||
presyms.each{|x| x.chomp!}
|
||||
if presyms != symbols
|
||||
File.write(presym_file, symbols.join("\n"))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user