[前][次][番号順一覧][スレッド一覧]

ruby-changes:36539

From: nobu <ko1@a...>
Date: Fri, 28 Nov 2014 01:22:27 +0900 (JST)
Subject: [ruby-changes:36539] nobu:r48621 (trunk): make_encmake.rb: fix typo

nobu	2014-11-28 01:21:51 +0900 (Fri, 28 Nov 2014)

  New Revision: 48621

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48621

  Log:
    make_encmake.rb: fix typo
    
    * enc/make_encmake.rb: fix typo, and use real read filename.

  Modified files:
    trunk/enc/make_encmake.rb
Index: enc/make_encmake.rb
===================================================================
--- enc/make_encmake.rb	(revision 48620)
+++ enc/make_encmake.rb	(revision 48621)
@@ -120,8 +120,9 @@ open(ARGV[0], 'wb') {|f| https://github.com/ruby/ruby/blob/trunk/enc/make_encmake.rb#L120
   f.puts mkin, dep
 }
 if MODULE_TYPE == :static
-  erb = ERB.new(File.read(File.join($srcdir, "encinit.c.erb")), nil, '%-')
-  erb.filename = "enc/encinit.c.cerb"
+  filename = "encinit.c.erb"
+  erb = ERB.new(File.read(File.join($srcdir, filename)), nil, '%-')
+  erb.filename = "enc/#{filename}"
   tmp = erb.result(binding)
   begin
     Dir.mkdir 'enc'

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]