File-RsyncP
view release on metacpan or search on metacpan
lib/File/RsyncP.pm view on Meta::CPAN
# replace --devices with -D in $rs->{rsyncArgs}.
#
for ( my $i = 0 ; $i < @{$rs->{rsyncArgs}} ; $i++ ) {
$rs->{rsyncArgs}[$i] = "-D"
if ( $rs->{rsyncArgs}[$i] eq "--devices" );
}
#
# process rsync options
#
local(@ARGV);
$rs->{rsyncOpts} = {};
@ARGV = @{$rs->{rsyncArgs}};
my $p = new Getopt::Long::Parser(
config => ["bundling", "pass_through"],
);
#
# First extract all the exclude related options for processing later
#
lib/File/RsyncP.pm view on Meta::CPAN
push(@{$rs->{excludeArgs}}, {name => $argName, value => $argValue});
}
#
# Strip the exclude and include arguments from the given argument list
#
sub excludeStrip
{
my($rs, $args) = @_;
local(@ARGV);
my $p = new Getopt::Long::Parser(
config => ["bundling", "pass_through"],
);
@ARGV = @$args;
#
# Extract all the exclude related options
#
$p->getoptions(
( run in 0.463 second using v1.01-cache-2.11-cpan-49f99fa48dc )