Revision d4b5798a
Added by Marc Dequènes almost 16 years ago
- ID d4b5798aee4e9b3ddb65a7087ddb0c7726363333
Rakefile | ||
---|---|---|
APP_ROOT = File.dirname(File.expand_path(__FILE__))
|
||
Dir.chdir(APP_ROOT)
|
||
$: << "./lib"
|
||
# to allow in-place run
|
||
$: << File.join(File.dirname(__FILE__), ".", "lib")
|
||
|
||
ENV['LC_ALL'] = "C"
|
||
|
||
require 'rake'
|
||
require 'gettext/utils'
|
||
require 'lib/cyborghood/base.rb'
|
||
require 'lib/cyborghood/config'
|
||
require 'lib/cyborghood/info'
|
||
|
||
namespace :i18n do
|
||
desc "Create mo-files for l10n"
|
||
task :makemo do
|
||
GetText.create_mofiles(true, "po", "locale")
|
||
GetText.create_mofiles(true, "po", CyborgHood::Config::L10N_DIR)
|
||
end
|
||
|
||
desc "Update pot/po files to match new version."
|
||
... | ... | |
Dir.glob("lib/**/*.{rb,rhtml}"),
|
||
CyborgHood::PRODUCT + " " + CyborgHood::VERSION)
|
||
# temporary component listing
|
||
["Postman"].each do |component|
|
||
GetText.update_pofiles("cyborghood_" + component.downcase,
|
||
component.downcase,
|
||
["postman"].each do |component|
|
||
GetText.update_pofiles("cyborghood_" + component,
|
||
File.join(CyborgHood::Config::BIN_DIR, component),
|
||
CyborgHood::PRODUCT + " " + CyborgHood::VERSION)
|
||
end
|
||
end
|
Also available in: Unified diff
[evol] added setup.rb installer, with hooks to generate locales and a 'lib/cyborghood/config.rb' file having a new CyborgHood::Config providing with installation paths, and created CyborgHood::Info to contain software general information (rakefile build-depends are then reduced to the minimum)