From dd64d68b79cc41d3457c4abb6e2ec998b9721df8 Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Sat, 7 Jun 2008 15:48:53 -0400 Subject: add wrapper for msgmerge to workaround gettext bug with "empty" pot files --- Rakefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index b44ca95f..c1bc780e 100644 --- a/Rakefile +++ b/Rakefile @@ -37,6 +37,12 @@ end desc "Update pot/po files." task :updatepo do + # ruby-gettext treats empty output from msgmerge as error, causing this task to + # fail. we provide a wrapper to work around it. see bin/msgmerge-wrapper.rb for + # details + ENV['REAL_MSGMERGE_PATH'] = ENV['MSGMERGE_PATH'] + ENV['MSGMERGE_PATH'] = 'bin/msgmerge-wrapper.rb' + require 'gettext/utils' plugin_files = Dir.glob('data/rbot/plugins/**/*.rb') # all except plugin files use the rbot textdomain -- cgit v1.2.3