File: Rakefile

package info (click to toggle)
ruby-gettext-rails 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,408 kB
  • sloc: ruby: 1,042; makefile: 6
file content (28 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

$LOAD_PATH.unshift "../lib"
$LOAD_PATH.unshift "../../lib"
require(File.join(File.dirname(__FILE__), 'config', 'boot'))

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

require 'tasks/rails'

desc "Create mo-files for L10n"
task :makemo do
  require 'gettext_rails/tools'
  GetText.create_mofiles
  mkdir "log" unless File.exists? "log"
end

desc "Update pot/po files to match new version."
task :updatepo do
  require 'gettext_rails/tools'
  GetText.update_pofiles("rails_test", Dir.glob("{app,lib}/**/*.{rb,rhtml,erb}"),
                         "rails_test 1.2.0")
end