mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Improve generator to output status
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require 'pty'
|
||||
|
||||
c_dir = File.dirname(__FILE__)
|
||||
MRUBY_ROOT = File.expand_path("#{c_dir}/../..")
|
||||
DOC_DIR = File.expand_path(c_dir)
|
||||
|
||||
puts `#{DOC_DIR}/mrbdoc/mrbdoc.rb #{MRUBY_ROOT} #{DOC_DIR}`
|
||||
cmd = "#{DOC_DIR}/mrbdoc/mrbdoc.rb #{MRUBY_ROOT} #{DOC_DIR}"
|
||||
PTY.spawn(cmd) do |i,o,pid|
|
||||
i.each { |l| print l }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user