diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-13 22:09:43 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-13 22:09:43 +0000 |
commit | 3688c7a1eeda83b3da39cf03bbd0b8ae09df94b9 (patch) | |
tree | 5a1df449e9a2a38a53d6be0c565347524fad6c14 | |
parent | 499fef3e53ed230ddf1126eb881f579f4e64014f (diff) | |
download | ruby-3688c7a1eeda83b3da39cf03bbd0b8ae09df94b9.tar.gz |
* tool/makedocs.rb, template/insnstbl.html: removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | template/insnstbl.html | 39 | ||||
-rw-r--r-- | tool/makedocs.rb | 62 |
3 files changed, 4 insertions, 101 deletions
@@ -1,3 +1,7 @@ +Wed Nov 14 07:07:51 2007 Koichi Sasada <ko1@atdot.net> + + * tool/makedocs.rb, template/insnstbl.html: removed. + Wed Nov 14 02:50:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * common.mk (parse.c): dependency also needs vpath. diff --git a/template/insnstbl.html b/template/insnstbl.html deleted file mode 100644 index 1a3613d897..0000000000 --- a/template/insnstbl.html +++ /dev/null @@ -1,39 +0,0 @@ - -<?xml version='1.0' encoding='SHIFT_JIS'?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><!-- - $Id$ - diary index - --><html xml:lang='ja' xmlns='http://www.w3.org/1999/xhtml'> - <head> - <meta content='text/html;charset=Shift_JIS' http-equiv='Content-Type'/> - <meta content='text/css' http-equiv='Content-Style-Type'/> - <meta content='text/javascript' http-equiv='Content-Script-Type'/> - - <link href='./contents.css' rel='stylesheet' type='text/css'/> - - <title>YARV: Yet another RubyVM / Instruction Table</title> - - <link href='mailto:ko1 at atdot.net' rev='made'/> - <link href='../index.html' rel='index'/> -</head> - <body> - <h1>YARV: Instruction Table</h1> -<table border='1' cellspacing='1' align='center'> - <tr> - <th>type</th> - <th>Index</th> - <th>Instruction</th> - <th>Operands</th> - <th colspan='3'>Stacks</th> - </tr> - <%= tbl %> -</table> - -<address> - SASADA Koichi / ko1 at atdot.net -</address> -</div> - </body> -</html> - - - 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 ' ' - 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> => </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 - |