[Groonga-commit] droonga/droonga.org at b81092f [gh-pages] task: support "rake clean"

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Feb 23 22:41:56 JST 2014


Kouhei Sutou	2014-02-23 22:41:56 +0900 (Sun, 23 Feb 2014)

  New Revision: b81092fc4323882a69e1aa6ee73c26857f71743b
  https://github.com/droonga/droonga.org/commit/b81092fc4323882a69e1aa6ee73c26857f71743b

  Message:
    task: support "rake clean"

  Modified files:
    _tasks/i18n.rb

  Modified: _tasks/i18n.rb (+4 -0)
===================================================================
--- _tasks/i18n.rb    2014-02-23 22:37:50 +0900 (3aea629)
+++ _tasks/i18n.rb    2014-02-23 22:41:56 +0900 (ab072bd)
@@ -14,6 +14,8 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 require "pathname"
+require "rake/clean"
+
 require "yard"
 require "gettext/tools"
 
@@ -76,6 +78,7 @@ class I18nTask
       po_file_path = po_dir_path + "#{base_name}.po"
       edit_po_file_path = po_dir_path + "#{base_name}.edit.po"
       edit_po_file_paths << edit_po_file_path
+      CLEAN << edit_po_file_path.to_s
 
       directory po_dir_path.to_s
       file edit_po_file_path.to_s => [target_file, po_dir_path.to_s] do
@@ -155,6 +158,7 @@ class I18nTask
       end
     end
 
+    CLEAN << all_po_file_path.to_s
     file all_po_file_path.to_s => po_file_paths.collect(&:to_s) do
       GetText::Tools::MsgCat.run("--output", all_po_file_path.to_s,
                                  "--no-fuzzy",
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index