Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 342 Bytes
Encoding.default_external = 'UTF-8'
STDOUT.sync = true;
begin
filename = ARGV[0];
regexp = /(\s*\/\/\s*|\s*)?cc\.log(?<paren>\((?:[^()]|\g<paren>)*\)[\s\;]?)/m
replace = ''
File.open(filename, "r") do |file|
puts file.read.gsub(regexp, replace)
end
rescue => ex
print ex.class
print ex.message
print ex.backtrace
end