Commit f30f6207 by Steve Strassmann

clean up rakefile syntax for task dependencies

parent 35d72f30
...@@ -513,14 +513,12 @@ end ...@@ -513,14 +513,12 @@ end
namespace :i18n do namespace :i18n do
desc "Extract localizable strings from sources" desc "Extract localizable strings from sources"
task :extract do task :extract => "i18n:validate:gettext" do
Rake::Task["i18n:validate:gettext"].execute
sh(File.join(REPO_ROOT, "i18n", "extract.py")) sh(File.join(REPO_ROOT, "i18n", "extract.py"))
end end
desc "Compile localizable strings from sources. With optional flag 'extract', will extract strings first." desc "Compile localizable strings from sources. With optional flag 'extract', will extract strings first."
task :generate do task :generate => "i18n:validate:gettext" do
Rake::Task["i18n:validate:gettext"].execute
if ARGV.last.downcase == 'extract' if ARGV.last.downcase == 'extract'
Rake::Task["i18n:extract"].execute Rake::Task["i18n:extract"].execute
end end
...@@ -579,8 +577,7 @@ namespace :i18n do ...@@ -579,8 +577,7 @@ namespace :i18n do
end end
desc "Run tests for the internationalization library" desc "Run tests for the internationalization library"
task :test do task :test => "i18n:validate:gettext" do
Rake::Task["i18n:validate:gettext"].execute
test = File.join(REPO_ROOT, "i18n", "tests") test = File.join(REPO_ROOT, "i18n", "tests")
sh("nosetests #{test}") sh("nosetests #{test}")
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment