1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/mkmf.rb (create_makefile): ignore rest from first dot from

TARGET to generate init function name.
  this is followup of r30464.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2011-01-06 11:58:44 +00:00
parent 10284a049a
commit a6fac6a669
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Thu Jan 6 20:55:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/mkmf.rb (create_makefile): ignore rest from first dot from
TARGET to generate init function name.
this is followup of r30464.
Thu Jan 6 11:27:01 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/json/tree_builder.rb (start_mapping): tags

View file

@ -1895,7 +1895,7 @@ def create_makefile(target, srcprefix = nil)
makedef = %{-pe "$_.sub!(/^(?=\\w)/,'#{EXPORT_PREFIX}') unless 1../^EXPORTS$/i"}
end
else
makedef = %{-e "puts 'EXPORTS', '#{EXPORT_PREFIX}Init_$(TARGET)'"}
makedef = %{-e "puts 'EXPORTS', '#{EXPORT_PREFIX}' + 'Init_$(TARGET)'.sub(/\\..*\\z/,'')"}
end
if makedef
$cleanfiles << '$(DEFFILE)'