Skip to content

Commit

Permalink
decore
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed May 23, 2022
1 parent 408a10c commit 05e600c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions misc/decorate.rb
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby

def decore(filename)
puts filename
lines = IO.readlines(filename)

File.open(filename,'w') do |f|
lines.each do |line|
line.chomp!
line.sub!(/^REF_STATUS ref/, "REF_FCN REF_STATUS ref")
line.sub!(/^static REF_STATUS ref/, "REF_FCN static REF_STATUS ref")
f.puts line
end
end
end

decore(ARGV[0])

0 comments on commit 05e600c

Please sign in to comment.