summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 22:09:43 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 22:09:43 +0000
commit3688c7a1eeda83b3da39cf03bbd0b8ae09df94b9 (patch)
tree5a1df449e9a2a38a53d6be0c565347524fad6c14 /tool
parent499fef3e53ed230ddf1126eb881f579f4e64014f (diff)
* tool/makedocs.rb, template/insnstbl.html: removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/makedocs.rb62
1 files changed, 0 insertions, 62 deletions
diff --git a/tool/makedocs.rb b/tool/makedocs.rb
deleted file mode 100644
index 56cb21565f..0000000000
--- a/tool/makedocs.rb
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/usr/bin/env ruby
-#
-#
-
-require 'rb/insns2vm.rb'
-insns = insns_def_new
-
-{ # docs
- '/doc/yarvarch.ja' => :desc_ja,
- '/doc/yarvarch.en' => :desc_en,
-}.each{|fn, s|
- fn = $srcdir + fn
- p fn
- open(fn, 'w'){|f|
- f.puts(insns.__send__(s))
- }
-}
-
-def chg ary
- if ary.empty?
- return '&nbsp;'
- end
-
- ary.map{|e|
- if e[0] == '...'
- '...'
- else
- e.join(' ')
- end
- e[1]
- }.join(', ')
-end
-
-open($srcdir + '/doc/insnstbl.html', 'w'){|f|
- tbl = ''
- type = nil
- insns.each_with_index{|insn, i|
- c = insn.comm[:c]
- if type != c
- stype = c
- type = c
- end
-
- tbl << "<tr>\n"
- tbl << "<td>#{stype}</td>"
- tbl << "<td>#{i}</td>"
- tbl << "<td>#{insn.name}</td>"
- tbl << "<td>#{chg insn.opes}</td>"
- tbl << "<td>#{chg insn.pops.reverse}</td>"
- tbl << "<td> =&gt; </td>"
- tbl << "<td>#{chg insn.rets.reverse}</td>"
- tbl << "</tr>\n"
- }
- f.puts ERB.new(File.read($srcdir + '/template/insnstbl.html')).result(binding)
-}
-
-begin
- system('t2n.bat --tmpl doc.tmpl ../doc/yarvarch.ja > ../doc/yarvarch.ja.html')
- system('t2n.bat --tmpl doc.tmpl ../doc/yarvarch.en > ../doc/yarvarch.en.html')
-rescue
-end
-