зеркало из https://github.com/github/ruby.git
expand-config.rb: expand config values
* tool/expand-config.rb: expand config values, extracted from win32/Makefile.sub. * win32/Makefile.sub (ruby_pc): use tool/expand-config.rb script. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
07dcd43a0a
Коммит
bb4a1ac9b0
|
@ -0,0 +1,7 @@
|
|||
STDOUT.binmode
|
||||
ARGF.each do |line|
|
||||
line.gsub!(/@([a-z_]\w*)@/i) {
|
||||
(RbConfig::MAKEFILE_CONFIG[$1] or "").gsub(/\$\((.+?)\)/, %Q[${\\1}])
|
||||
}
|
||||
puts line
|
||||
end
|
|
@ -1053,11 +1053,7 @@ end
|
|||
<<KEEP
|
||||
|
||||
$(ruby_pc): $(RBCONFIG)
|
||||
@$(MINIRUBY) -r./rbconfig -p \
|
||||
-e 'STDOUT.binmode' \
|
||||
-e '$$_.gsub!(/@([a-z_]\w*)@/i) {' \
|
||||
-e '(RbConfig::MAKEFILE_CONFIG[$$1] or "").gsub(/\$$\((.+?)\)/, %Q[$${\\1}])' \
|
||||
-e '}' \
|
||||
@$(MINIRUBY) -r./rbconfig $(srcdir)/tool/expand-config.rb \
|
||||
$(srcdir)/template/ruby.pc.in > $@
|
||||
|
||||
{$(srcdir)/enc}.c.obj:
|
||||
|
|
Загрузка…
Ссылка в новой задаче