From f30f6207d5e46938daf674d8685b1236c63be138 Mon Sep 17 00:00:00 2001 From: Steve Strassmann Date: Fri, 10 May 2013 14:47:47 -0400 Subject: [PATCH] clean up rakefile syntax for task dependencies --- rakefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/rakefile b/rakefile index 3edbc39067..cf9363d47b 100644 --- a/rakefile +++ b/rakefile @@ -513,14 +513,12 @@ end namespace :i18n do desc "Extract localizable strings from sources" - task :extract do - Rake::Task["i18n:validate:gettext"].execute + task :extract => "i18n:validate:gettext" do sh(File.join(REPO_ROOT, "i18n", "extract.py")) end desc "Compile localizable strings from sources. With optional flag 'extract', will extract strings first." - task :generate do - Rake::Task["i18n:validate:gettext"].execute + task :generate => "i18n:validate:gettext" do if ARGV.last.downcase == 'extract' Rake::Task["i18n:extract"].execute end @@ -579,8 +577,7 @@ namespace :i18n do end desc "Run tests for the internationalization library" - task :test do - Rake::Task["i18n:validate:gettext"].execute + task :test => "i18n:validate:gettext" do test = File.join(REPO_ROOT, "i18n", "tests") sh("nosetests #{test}") end