]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - Rakefile
generate mo files only from existing po files, instead of for each plugin
[user/henk/code/ruby/rbot.git] / Rakefile
index bf08c83f6670723963cc7b35c4f838c860aa5423..b24955523bcd4b4b9c07f8141dd1a7c7ada56019 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -209,8 +209,7 @@ task :buildext do
 end
 
 desc 'Generate mo files'
-task :makemo => LOCALES.map {|l|
-  ["data/locale/#{l}/LC_MESSAGES/rbot.mo"] +
-  PLUGIN_BASENAMES.map {|n| "data/locale/#{l}/LC_MESSAGES/rbot-#{n}.mo"}
-}.flatten
+task :makemo =>
+  FileList['po/*/*.po'].pathmap('%{^po,data/locale}d/LC_MESSAGES/%n.mo')
+