52 |
$path =~ s#^[cd]:\\#/#gi; |
$path =~ s#^[cd]:\\#/#gi; |
53 |
$path =~ s#\\#/#g; |
$path =~ s#\\#/#g; |
54 |
|
|
55 |
open(O, "> conf/${conf_name}.pl") || die "can't open ${conf_name}.pl"; |
open(O, "> conf/${conf_name}.pl") || die "can't open conf/${conf_name}.pl: $!"; |
56 |
|
|
57 |
if ($os =~ m#(98|95)#) { |
if ($os =~ m#(98|95)#) { |
58 |
|
|
74 |
} |
} |
75 |
} else { |
} else { |
76 |
|
|
77 |
|
sub case_insesitive { |
78 |
|
my $t = shift || return; |
79 |
|
return '[' . lc($t) . uc($t) . ']'; |
80 |
|
} |
81 |
|
|
82 |
|
$path =~ s/([a-zA-z])/case_insesitive($1)/ge; |
83 |
|
|
84 |
print "$ip\trsync://${share}::${path}\n"; |
print "$ip\trsync://${share}::${path}\n"; |
85 |
|
|
86 |
$path =~ s/([ '])/\\$1/g; |
$path =~ s/([ '])/\\$1/g; |