* mkconfig.rb: remove DEFS definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
70e3e77f3b
commit
71e591aed6
13
mkconfig.rb
13
mkconfig.rb
@ -48,19 +48,6 @@ File.foreach "config.status" do |line|
|
|||||||
v_others << v
|
v_others << v
|
||||||
end
|
end
|
||||||
has_version = true if name == "MAJOR"
|
has_version = true if name == "MAJOR"
|
||||||
if /DEFS/ =~ line
|
|
||||||
val.split(/\s*-D/).each do |i|
|
|
||||||
if i =~ /(.*)=(\\")?([^\\]*)(\\")?/
|
|
||||||
key, val = $1, $3
|
|
||||||
if val == '1'
|
|
||||||
val = "TRUE"
|
|
||||||
else
|
|
||||||
val.sub! /^\s*(.*)\s*$/, '"\1"'
|
|
||||||
end
|
|
||||||
print " CONFIG[\"#{key}\"] = #{val}\n"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
elsif /^ac_given_srcdir=(.*)/ =~ line
|
elsif /^ac_given_srcdir=(.*)/ =~ line
|
||||||
v_fast << " CONFIG[\"srcdir\"] = \"" + File.expand_path($1) + "\"\n"
|
v_fast << " CONFIG[\"srcdir\"] = \"" + File.expand_path($1) + "\"\n"
|
||||||
has_srcdir = true
|
has_srcdir = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user