summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-08-22 03:07:59 +0000
committerfukachan <fukachan>2001-08-22 03:07:59 +0000
commit3c2ac05aa975bf9df8212e2a9e0dc49299fe4a74 (patch)
tree9708f245bc3296778615cc6e6b01081af8391870 /fml/lib/FML/Command
parent10f0cdb58372123f5986cd7646e1d23c306199bb (diff)
downloadfml8-3c2ac05aa975bf9df8212e2a9e0dc49299fe4a74.tar.gz
fml8-3c2ac05aa975bf9df8212e2a9e0dc49299fe4a74.tar.bz2
fml8-3c2ac05aa975bf9df8212e2a9e0dc49299fe4a74.zip
modified to use File::Spec
Diffstat (limited to 'fml/lib/FML/Command')
-rw-r--r--fml/lib/FML/Command/newml.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/fml/lib/FML/Command/newml.pm b/fml/lib/FML/Command/newml.pm
index a3773c14..6317ef4d 100644
--- a/fml/lib/FML/Command/newml.pm
+++ b/fml/lib/FML/Command/newml.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: newml.pm,v 1.6 2001/05/27 14:27:54 fukachan Exp $
+# $FML: newml.pm,v 1.7 2001/07/15 12:03:37 fukachan Exp $
#
package FML::Command::newml;
@@ -52,9 +52,11 @@ sub newml
unless (-d $ml_home_dir) {
mkdirhier( $ml_home_dir, $config->{ default_dir_mode } || 0755 );
+ use File::Spec;
+
my $default_config_dir = $main_cf->{ default_config_dir };
- my $src = $default_config_dir ."/config.cf";
- my $dst = $ml_home_dir . "/" . 'config.cf';
+ my $src = File::Spec->catfile($default_config_dir, "config.cf");
+ my $dst = File::Spec->catfile($ml_home_dir, 'config.cf');
copy($src, $dst);
}
else {