* tool/mkconfig.rb: do not make the entries related to sitedir and
verdordir if disabled by --without options. [ruby-core:38922] [Bug #5187] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
75de442dd0
commit
31e1fce2a3
@ -1,3 +1,9 @@
|
||||
Sat Aug 13 22:17:27 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* tool/mkconfig.rb: do not make the entries related to sitedir and
|
||||
verdordir if disabled by --without options. [ruby-core:38922]
|
||||
[Bug #5187]
|
||||
|
||||
Sat Aug 13 17:03:22 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* ext/date/date_core.c: [ruby-core:38861]
|
||||
|
@ -175,14 +175,22 @@ end
|
||||
print " CONFIG[#{v.dump}] = #{versions[v].dump}\n"
|
||||
end
|
||||
|
||||
dest = drive ? /= \"(?!\$[\(\{])(?:[a-z]:)?/i : /= \"(?!\$[\(\{])/
|
||||
dest = drive ? %r'= "(?!\$[\(\{])(?i:[a-z]:)' : %r'= "(?!\$[\(\{])'
|
||||
v_disabled = {}
|
||||
v_others.collect! do |x|
|
||||
if /^\s*CONFIG\["(?!abs_|old)[a-z]+(?:_prefix|dir)"\]/ === x
|
||||
if /^\s*CONFIG\["((?!abs_|old)[a-z]+(?:_prefix|dir))"\]/ === x
|
||||
name = $1
|
||||
if /= "no"$/ =~ x
|
||||
v_disabled[name] = true
|
||||
v_others.delete(name)
|
||||
next
|
||||
end
|
||||
x.sub(dest, '= "$(DESTDIR)')
|
||||
else
|
||||
x
|
||||
end
|
||||
end
|
||||
v_others.compact!
|
||||
|
||||
if $install_name
|
||||
v_fast << " CONFIG[\"ruby_install_name\"] = \"" + $install_name + "\"\n"
|
||||
@ -197,10 +205,16 @@ print(*v_others)
|
||||
print <<EOS
|
||||
CONFIG["rubylibdir"] = "$(rubylibprefix)/$(ruby_version)"
|
||||
CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
|
||||
EOS
|
||||
print <<EOS unless v_disabled["sitedir"]
|
||||
CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
|
||||
CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
|
||||
EOS
|
||||
print <<EOS unless v_disabled["vendordir"]
|
||||
CONFIG["vendorlibdir"] = "$(vendordir)/$(ruby_version)"
|
||||
CONFIG["vendorarchdir"] = "$(vendorlibdir)/$(sitearch)"
|
||||
EOS
|
||||
print <<EOS
|
||||
CONFIG["topdir"] = File.dirname(__FILE__)
|
||||
MAKEFILE_CONFIG = {}
|
||||
CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
|
||||
|
Loading…
x
Reference in New Issue
Block a user