Simplified `Rakefile`.

parent e3e55969
...@@ -132,19 +132,13 @@ file presym_file => cfiles+rbfiles do ...@@ -132,19 +132,13 @@ file presym_file => cfiles+rbfiles do
symbols = (csymbols+rbsymbols).flatten.uniq.sort symbols = (csymbols+rbsymbols).flatten.uniq.sort
presyms = File.readlines(presym_file, chomp: true) rescue [] presyms = File.readlines(presym_file, chomp: true) rescue []
if presyms != symbols if presyms != symbols
rm_f presym_file File.write(presym_file, symbols.join("\n"))
File.open(presym_file, "w") do |f|
symbols.each do|line|
f.puts line
end
end
end end
end end
presym_inc=presym_file+".inc" presym_inc=presym_file+".inc"
file presym_inc => presym_file do file presym_inc => presym_file do
presyms = File.readlines(presym_file, chomp: true) presyms = File.readlines(presym_file, chomp: true)
rm_f presym_inc
File.open(presym_inc, "w") do |f| File.open(presym_inc, "w") do |f|
op_table = { op_table = {
"!" => "not", "!" => "not",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment