use File::Find;
use FindBin;
-use File::Copy::Recursive 'rcopy';
+use File::Copy::Recursive;
use File::Spec ();
use Getopt::Long ();
use Data::Dumper;
sub catalyst {
my $self = shift;
+
+ if($Module::Install::AUTHOR) {
+ $self->include("File::Copy::Recursive");
+ }
+
print <<EOF;
*** Module::Install::Catalyst
EOF
my @path = split '-', $self->name;
for my $orig (@files) {
my $path = File::Spec->catdir( 'blib', 'lib', @path, $orig );
- rcopy( $orig, $path );
+ File::Copy::Recursive::rcopy( $orig, $path );
}
}