Commit ed065de86cbde0f17843be3e0078496ede665a53

Authored by Antonio Terceiro
1 parent ea121f37

updatepo: restrict directories where to look for PO files

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/tasks/gettext.rake
@@ -107,7 +107,7 @@ file 'tmp/makemo.stamp' do |t| @@ -107,7 +107,7 @@ file 'tmp/makemo.stamp' do |t|
107 end 107 end
108 108
109 task :updatepo => 'gettext:po:update' do 109 task :updatepo => 'gettext:po:update' do
110 - Dir.glob('**/*.po').each do |po| 110 + Dir.glob('{po,plugins}/**/*.po').each do |po|
111 sh "cp #{po} #{po}.tmp && msguniq -o #{po} #{po}.tmp && rm -f #{po}.tmp" 111 sh "cp #{po} #{po}.tmp && msguniq -o #{po} #{po}.tmp && rm -f #{po}.tmp"
112 end 112 end
113 end 113 end