• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

shogi-server source


Commit MetaInfo

Revisão498b1897371016e4bc0e303cab43b92a2c0b6e8b (tree)
Hora2010-10-06 22:39:22
Autordaigo <beatles@user...>
CommiterDaigo Moriwaki

Mensagem de Log

- mk_rate: the usage was not updated. (Closes: #23358)

Thanks to Hoki-san to report this issue.

Mudança Sumário

Diff

--- a/changelog
+++ b/changelog
@@ -1,3 +1,9 @@
1+2010-10-06 Daigo Moriwaki <daigo at debian dot org>
2+
3+ * [shogi-server]
4+ - mk_rate: the usage was not updated.
5+ Thanks to Hoki-san to report this issue. (Closes: #23358)
6+
17 2010-09-18 Daigo Moriwaki <daigo at debian dot org>
28
39 * [shogi-server]
--- a/mk_rate
+++ b/mk_rate
@@ -24,15 +24,20 @@
2424 #
2525 # == Synopsis
2626 #
27-# mk_rate reads CSA files, calculates rating scores of each player, and then
28-# outputs a yaml file (players.yaml) that Shogi-server can recognize.
27+# mk_rate reads game results files generated by the mk_game_results command,
28+# calculates rating scores of each player, and then outputs a yaml file
29+# (players.yaml) that Shogi-server can recognize.
2930 #
3031 # == Usage
3132 #
32-# ./mk_rate [options] DIR..
33+# ./mk_rate [options] GAME_RESULTS_FILE [...]
34+#
35+# ./mk_rate [options]
3336 #
34-# DIR::
35-# CSA files are recursively looked up the directories.
37+# GAME_RESULTS_FILE::
38+# a path to a file listing results of games, which is genrated by the
39+# mk_game_results command.
40+# In the second style above, the file content can be read from the stdin.
3641 #
3742 # --base-date::
3843 # a base time point for this calicuration (default now). Ex. '2009-10-31'
@@ -77,13 +82,15 @@
7782 #
7883 # $ sudo gem install rgl
7984 #
80-# == Run
85+# == Examples
86+#
87+# $ ./mk_rate game_results.txt > players.yaml
8188 #
82-# $ ./mk_rate . > players.yaml
89+# $ ./mk_game_results . | ./mk_rate > players.yaml
8390 #
84-# or, if you do not want the file to be update in case of errors,
91+# If you do not want the file to be update in case of errors,
8592 #
86-# $ ./mk_rate . && ./mk_rate . > players.yaml
93+# $ ./mk_rate game_results.txt && ./mk_rate game_results.txt > players.yaml
8794 #
8895 # == How players are rated
8996 #
@@ -679,8 +686,14 @@ end
679686
680687 def usage(io)
681688 io.puts <<EOF
682-USAGE: #{$0} [options] DIR..
683- DIR where CSA files are looked up recursively
689+USAGE: #{$0} [options] GAME_RESULTS_FILE [...]
690+ #{$0} [options]
691+
692+GAME_RESULTS_FILE:
693+ a path to a file listing results of games, which is genrated by the
694+ mk_game_results command.
695+ In the second style above, the file content can be read from the stdin.
696+
684697 OPTOINS:
685698 --base-date a base time point for this calicuration (default now). Ex. '2009-10-31'
686699 --half-life n [days] (default 60)