my $RepoCopy = "$Repo-$BranchName";
print "Copying repository to $RepoCopy ..." if $Verbose;
- system( "cp --archive -f $Repo $RepoCopy" )
+ ### --archive == -dPpR, but --archive is not portable, and neither
+ ### is -d, so settling for -PpR
+ system( "cp -PpR -f $Repo $RepoCopy" )
and die "Copying master repo to $RepoCopy failed: $?";
### Going forward, use the copy in place of the original repo
? system( "cp -fR $CPV t $TopDir" ) && die "Copy of t/ failed: $?"
: warn "No t/ directory found\n";
- @TestFiles = map { chomp; s|^$TopDirRe||; $_ }
+ @TestFiles = map { chomp; s|^$TopDirRe||; s|//|/|g; $_ }
### should we get rid of this file?
grep { $ExcludeRe && $_ =~ $ExcludeRe
? do { warn "Removing $_\n";
system($CopyCmd) && die "Copy of $BinDir failed: $?";
- @BinFiles = map { chomp; s|^$TopDirRe||; $_ }
+ @BinFiles = map { chomp; s|^$TopDirRe||; s|//|/|g; $_ }
### should we get rid of this file?
grep { $ExcludeRe && $_ =~ $ExcludeRe
? do { warn "Removing $_\n";