diff options
| -rw-r--r-- | fml/etc/install.cf.in | 8 | ||||
| -rw-r--r-- | fml/lib/FML/Install.pm | 12 |
2 files changed, 12 insertions, 8 deletions
diff --git a/fml/etc/install.cf.in b/fml/etc/install.cf.in index bd0ca75f..14194009 100644 --- a/fml/etc/install.cf.in +++ b/fml/etc/install.cf.in @@ -3,7 +3,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: install.cf.in,v 1.11 2003/03/16 04:53:34 fukachan Exp $ +# $FML: install.cf.in,v 1.12 2003/10/26 02:04:09 fukachan Exp $ # @@ -61,8 +61,10 @@ mandatory_dirs = prefix data_dir # install /etc/fml/defaults/$version/ -nl_template_files = default_config.cf - config.cf +nl_template_files = default_config.cf.ja + default_config.cf.en + config.cf.ja + config.cf.en # sample files sample_cf_files = site_default_config.cf diff --git a/fml/lib/FML/Install.pm b/fml/lib/FML/Install.pm index 39496b88..edd27a70 100644 --- a/fml/lib/FML/Install.pm +++ b/fml/lib/FML/Install.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Install.pm,v 1.7 2003/08/23 04:35:27 fukachan Exp $ +# $FML: Install.pm,v 1.8 2003/10/26 02:04:08 fukachan Exp $ # package FML::Install; @@ -42,8 +42,6 @@ FML::Install - utility functions used in installation } } - # XXX-TODO: check uid, gid - $installer->install_main_cf(); $installer->install_sample_cf_files(); $installer->install_default_config_files(); @@ -95,6 +93,9 @@ sub new } +# XXX-TODO: check uid, gid method + + =head1 CONFIG =head2 load_install_cf( $cf ) @@ -288,11 +289,12 @@ sub install_default_config_files $self->disable_message(); + # XXX change file name of components of $nl_template_files into + # XXX ${file_name}.{ja,en,...} my $nl_template_files = $config->get_as_array_ref('nl_template_files'); for my $file (@$nl_template_files) { - # XXX-TODO: how should we handle natural language .cf ? # XXX src = relative path, dst = absolute path - my $src = File::Spec->catfile("fml", "etc", $file . ".ja"); + my $src = File::Spec->catfile("fml", "etc", $file); my $dst = File::Spec->catfile($config_dir, $file); # always override. |
