summaryrefslogtreecommitdiffhomepage
path: root/doc/language/generator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'doc/language/generator.rb')
-rwxr-xr-xdoc/language/generator.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/language/generator.rb b/doc/language/generator.rb
new file mode 100755
index 000000000..9bc907ece
--- /dev/null
+++ b/doc/language/generator.rb
@@ -0,0 +1,7 @@
+#!/usr/bin/env ruby
+
+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}`