1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/insns2vm.rb
shyouhei 8a72c77c79 tool/ruby_vm support for pre-2.1 BASERUBY
as requested by devs, support for BASERUBY prior to 2.1

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-12 08:38:11 +00:00

15 lines
304 B
Ruby
Executable file

#!ruby
# This is used by Makefile.in to generate .inc files.
# See Makefile.in for details.
require_relative 'ruby_vm/scripts/insns2vm'
if $0 == __FILE__
router(ARGV).each do |(path, generator)|
str = generator.generate path
path.open 'wb:utf-8' do |fp|
fp.write str
end
end
end