-#!/usr/bin/ruby
-## $Id$
-
-## Copyright (C) 2006 Daigo Moriwaki <daigo at debian dot org>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2 of the License, or
-## (at your option) any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-#
-# This generates html pages from players.yaml.
-#
-# Sample:
-# $ ./mk_html < players.yaml > rating.html
-#
+#!/usr/bin/ruby1.9.1
+# $Id$
+#
+# Author:: Daigo Moriwaki
+# Homepage:: http://sourceforge.jp/projects/shogi-server/
+#
+#--
+# Copyright (C) 2006-2012 Daigo Moriwaki <daigo at debian dot org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#++
+#
+# == Synopsis
+#
+# mk_html generates an html page from a players.yaml.
+#
+# == Usage
+#
+# ./mk_html [OPTION] < players.yaml > rating.html
+#
+# [<tt>-h, --help</tt>]
+# show help
+#
+# [<tt>-w,--wdoor</tt>]
+# adpot wdoor style
+#
+# [<tt>--footer</tt> <i>filename</i>]
+# insert contents in the filename at the bottom of a genrated page.
+#
+# == Prerequire
+#
+# * Ruby 1.9.3 or 1.8.7
+#
+# $ sudo aptitude install ruby ruby1.9.1
+#
+# == Example
+#
+# $ ./mk_html --footer ./wdoor_1000.html < players.yaml > players.html
+#
+# $ cat ./wdoor-1000.html
+# <p>The average of the rates in a group is always 1000.
+# <p><a href="http://wdoor.c.u-tokyo.ac.jp/shogi/">BACK</a>
+#