diff options
-rwxr-xr-x | enc/make_encmake.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/enc/make_encmake.rb b/enc/make_encmake.rb index b917eca0bd..6ea2213686 100755 --- a/enc/make_encmake.rb +++ b/enc/make_encmake.rb @@ -120,8 +120,9 @@ open(ARGV[0], 'wb') {|f| 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' |