Project

General

Profile

Download (2.5 KB) Statistics
| Branch: | Tag: | Revision:
d4b5798a Marc Dequènes (Duck)
# post-config.rb - setup config generation

#--
# CyborgHood, a distributed system management software.
e7315259 Marc Dequènes (Duck)
# Copyright (c) 2009-2010 Marc Dequènes (Duck) <Duck@DuckCorp.org>
d4b5798a Marc Dequènes (Duck)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

# General header.
header = <<HEADER
44648f83 Marc Dequènes (Duck)
# config_setup.rb - Coin-diff setup configuration
d4b5798a Marc Dequènes (Duck)
#--
# CyborgHood, a distributed system management software.
e7315259 Marc Dequènes (Duck)
# Copyright (c) 2009-2010 Marc Dequènes (Duck) <Duck@DuckCorp.org>
d4b5798a Marc Dequènes (Duck)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

# This file is automatically generated by the installer.
# Do not edit by hand.

HEADER

44648f83 Marc Dequènes (Duck)
# Generate config_setup.rb containing general compile/setup time configuration
d4b5798a Marc Dequènes (Duck)
# information (in the CoinDiff::Config module).
fd5bab1c Marc Dequènes (Duck)
File.open('lib/cyborghood/base/config_setup.rb', 'w') do |file|
d4b5798a Marc Dequènes (Duck)
file.print header
file.print <<-CONFIG
module CyborgHood
class Config
BIN_DIR = '#{config('bindir')}'
CFG_DIR = '#{File.join(config('sysconfdir'), 'cyborghood')}'
DATA_DIR = '#{File.join(config('datadir'), 'cyborghood')}'
LIB_DIR = '#{config('rbdir')}'
LOG_DIR = '#{File.join(config('localstatedir'), 'log', 'cyborghood')}'
RUN_DIR = '#{File.join(config('localstatedir'), 'run', 'cyborghood')}'
VAR_DIR = '#{File.join(config('localstatedir'), 'lib', 'cyborghood')}'
L10N_DIR = '#{File.join(config('datadir'), 'locale')}'
end
end
CONFIG

end # File.open