compile_prelude.rb: remove comments
* tool/compile_prelude.rb (translate): remove comments which are not used in compiled sources. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c46bafcbfd
commit
d21c35ca6a
@ -45,6 +45,7 @@ class Prelude
|
||||
lines = []
|
||||
@preludes[filename] = result = [@preludes.size, filename, lines, sub]
|
||||
File.readlines(filename).each do |line|
|
||||
line.sub!(/(?:^|\s+)\#(?:$|\s.*)/, '')
|
||||
line.gsub!(/RbConfig::CONFIG\["(\w+)"\]/) {
|
||||
key = $1
|
||||
unless @mkconf
|
||||
|
Loading…
x
Reference in New Issue
Block a user