[Groonga-commit] ranguba/packnga at 56995b9 [master] Keep existing translations

Back to archive index

Masafumi Yokoyama null+****@clear*****
Fri Sep 5 00:26:22 JST 2014


Masafumi Yokoyama	2014-09-05 00:26:22 +0900 (Fri, 05 Sep 2014)

  New Revision: 56995b95de8fa980aa4e5cea6990cb1810e9e576
  https://github.com/ranguba/packnga/commit/56995b95de8fa980aa4e5cea6990cb1810e9e576

  Message:
    Keep existing translations
    
    TODO: unit testing.

  Modified files:
    lib/packnga/reference-task.rb

  Modified: lib/packnga/reference-task.rb (+4 -0)
===================================================================
--- lib/packnga/reference-task.rb    2014-08-30 19:33:54 +0900 (28be9ac)
+++ lib/packnga/reference-task.rb    2014-09-05 00:26:22 +0900 (fb26e6f)
@@ -168,6 +168,10 @@ module Packnga
         po_file = "#{@po_dir}/#{language}/#{@spec.name}.po"
         yard_po_file = "#{@po_dir}/#{language}.po"
         yard_po_files << yard_po_file
+        if File.exist?(yard_po_file)
+          mkdir_p(File.dirname(po_file))
+          mv(yard_po_file, po_file)
+        end
         file yard_po_file => po_file do
           cp(po_file, yard_po_file)
         end
-------------- next part --------------
HTML����������������������������...
Download 



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