mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 13:11:27 +00:00
Merge branch 'svn-trunk'
This commit is contained in:
@@ -11,6 +11,7 @@ use strict;
|
||||
use warnings;
|
||||
use 5.005;
|
||||
use Fcntl ':mode';
|
||||
use File::Spec;
|
||||
use IO::Handle;
|
||||
use IO::File;
|
||||
use Carp qw(cluck);
|
||||
@@ -4635,17 +4636,7 @@ sub _syswrite {
|
||||
}
|
||||
|
||||
sub make_path {
|
||||
my $path;
|
||||
|
||||
foreach my $element (@_) {
|
||||
if ($path && rindex($path, '/') != length($path) - 1) {
|
||||
$path .= '/';
|
||||
}
|
||||
cluck("make_path: invalid argument") if !valid($element);
|
||||
$path .= $element;
|
||||
}
|
||||
|
||||
return $path;
|
||||
return File::Spec->catdir(@_);
|
||||
}
|
||||
|
||||
;1 __END__
|
||||
|
||||
Reference in New Issue
Block a user