ruby-reference-manual:316
From: "Ken Date" <itacchi@g...>
Date: Mon, 19 Feb 2007 11:59:55 +0900
Subject: [ruby-reference-manual:316] Re: #@todoの追加作業をやってくれる人募集
伊達です。
昼休みにやっておきます。こんな感じでどうでしょう。
$ cat add_todo.rb
#!/usr/bin/ruby
start_entry = false
ARGF.each do |line|
case line
when /^---/
start_entry = true
when /^#\@todo/
next
when /^#\@since/
# nothing
else
puts '#@todo' if start_entry
start_entry = false
end
puts line
end
$ find refm/api/src/ -type f -not -path \*.svn\* -exec ruby -i.bak
add_todo.rb {} \;
--
ML: ruby-reference-manual@m...
使い方: http://QuickML.com/
315 2007-02-19 02:14 [aamine@l... ] #@todoの追加作業をやってくれる人募集 -> 316 2007-02-19 03:59 ┗[itacchi@g... ] 317 2007-02-19 05:20 ┗[itacchi@g... ] 318 2007-02-19 16:07 ┗[aamine@l... ]