[前][次][番号順一覧][スレッド一覧]

ruby-changes:2428

From: ko1@a...
Date: 14 Nov 2007 07:10:02 +0900
Subject: [ruby-changes:2428] ko1 - Ruby:r13919 (trunk): * tool/makedocs.rb, template/insnstbl.html: removed.

ko1	2007-11-14 07:09:43 +0900 (Wed, 14 Nov 2007)

  New Revision: 13919

  Removed files:
    trunk/template/insnstbl.html
    trunk/tool/makedocs.rb
  Modified files:
    trunk/ChangeLog

  Log:
    * tool/makedocs.rb, template/insnstbl.html: removed.
    


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13919&r2=13918
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/tool/makedocs.rb
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/template/insnstbl.html

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 13918)
+++ ChangeLog	(revision 13919)
@@ -1,3 +1,7 @@
+Wed Nov 14 07:07:51 2007  Koichi Sasada  <ko1@a...>
+
+	* tool/makedocs.rb, template/insnstbl.html: removed.
+
 Wed Nov 14 02:50:43 2007  Nobuyoshi Nakada  <nobu@r...>
 
 	* common.mk (parse.c): dependency also needs vpath.
Index: tool/makedocs.rb
===================================================================
--- tool/makedocs.rb	(revision 13918)
+++ tool/makedocs.rb	(revision 13919)
@@ -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
-
Index: template/insnstbl.html
===================================================================
--- template/insnstbl.html	(revision 13918)
+++ template/insnstbl.html	(revision 13919)
@@ -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>
-
-
-

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]